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
It seems very expensive to use the default_executor in creating the ready and exceptional executors. Wouldn't it make more sense to use the immediate_executor?
The text was updated successfully, but these errors were encountered:
fosterbrereton
changed the title
make_ready_future and make_exceptional_future should use the immediate executormake_ready_future and make_exceptional_future should use the immediate executor
Jul 10, 2017
The default_executor is used for scheduling continuations (.then() ) and does not impose any more cost on the resolving the future than the immediate_executor would. Using an immediate executor for a continuation can cause surprising behaviors - we choose to be consistent and use the default_executor as the default.
It seems very expensive to use the
default_executor
in creating the ready and exceptional executors. Wouldn't it make more sense to use theimmediate_executor
?The text was updated successfully, but these errors were encountered: