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
I tried adding this in the develop branch. But since packaged_task doesn't actually package arguments I ended up using bind internally anyway. There may be a better way I don't know about though.
For now we're able to enqueue e.g. lambdas, or use std::bind to curry functions taking various arguments.
It would be reasonable to provide a variadic enqueue instead, taking various arguments and simply passing them on, e.g.
The behavior should be similar to e.g. std::thread's interface.
The text was updated successfully, but these errors were encountered: