• nbbaier avatar
    cronLogger
    @nbbaier
    Log your cron evaluations to sqlite import { cronEvalLogger as logger } from "https://esm.town/v/nbbaier/cronLogger"; const run = async (interval: Interval) => { console.log("your code goes here"); }; export default logger(run);
    Script
  • neverstew avatar
    cronEvalLogger
    @neverstew
    Forked from nbbaier/cronLogger
    Script
  • neverstew avatar
    inTheBackgroundExample
    @neverstew
    inTheBackground With the addition of the "early return" feature of web handlers, you can now process short background tasks in vals. This can be really useful for occasions where an immediate response is required, with a subsequent update a few seconds later e.g. a Discord bot that calls ChatGPT needs to respond within a few seconds, which can be too fast for the AI to generate a response. We can instead reply immediately and then update that message later, inTheBackground Simply wrap something in inTheBackground and it will do just that! In this example, we log something a few seconds later than the web response is sent back.
    HTTP (deprecated)
1
Next
April 24, 2024