Allow run property to return a sync response💡Feature RequestAug 6, 2024Right now, the run property is only valid if it returns a promisePosted by An Anonymous User · Aug 6, 20241 comment1
Comments1
mattaitken
Aug 6, 2024
You can add the `async` label to the run function and then just return things:
export const immediateReturn = task({ id: "immediateReturn", run: async (payload) => { return { foo: "bar", } }, });Does this not work your use case?