New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support async io.runTask
error callback
#909
Comments
3 tasks
Try wrapping your The catchCallback that comes with this, supports async code :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
When
io.runTask
runs, it has anonError
callback option. This is great!But I have some
async
logic that I would like to run in this error callback. This is currently not supported since the error callback cannot return a promise.Describe the solution you'd like to see
Update
RunTaskErrorCallback
type to allow returning a promise, and updateio.runTask
toawait onError(error, task, this)
Describe alternate solutions
Do nothing and tell developers to
try
/catch
inside theio.runTask
(where it isasync
):Additional information
No response
The text was updated successfully, but these errors were encountered: