You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fallbacks are currently executed inside the worker itself, which sucks when you have a long-running fallback. We should investigate how to deal with them asynchronously.
I think that maybe returning { :deferred, task } to the calling process is the way to go, and then you can just await on the task. The only problem with this is that async: true calls will never receive this reply... so it needs thinking about.
This would naturally be optional - it might be that you want to block the worker.
The text was updated successfully, but these errors were encountered:
This will be made redundant by the changes coming for pooling in #37, so I'm going to close this. It can be revisited in future, but at this point the gain isn't big enough for the churn.
Fallbacks are currently executed inside the worker itself, which sucks when you have a long-running fallback. We should investigate how to deal with them asynchronously.
I think that maybe returning
{ :deferred, task }
to the calling process is the way to go, and then you can just await on the task. The only problem with this is thatasync: true
calls will never receive this reply... so it needs thinking about.This would naturally be optional - it might be that you want to block the worker.
The text was updated successfully, but these errors were encountered: