Amir Taaki
2012-04-26 13:45:23 UTC
Hi!
Why is there only a strand::wrap(f) and not an io_service::wrap(f) in the API? That'd be a really useful thing to have.
Every so often you need to call a handler but want to have it dispatched to another io_service. Such a thing is possible using a wrapper and argument forwarding, but I'm just wondering why it was included for strand and not io_service.
Why is there only a strand::wrap(f) and not an io_service::wrap(f) in the API? That'd be a really useful thing to have.
Every so often you need to call a handler but want to have it dispatched to another io_service. Such a thing is possible using a wrapper and argument forwarding, but I'm just wondering why it was included for strand and not io_service.