libqi-api
2.8.7.4
|
Returns a function which, when called, defers a call to the original function to the strand.
If the strand has been joined, the returned function will be a no-op.
code provides a function to set a data from within the strand:
Since the strand prevents concurrent calls, the data is safely set if this setter is used.
If the function was already asynchronous (returning a qi::Future<T>), the returned function will return a qi::Future<qi::Future<T>>, that you can choose to unwrap.
If you want the return type of the transformed function to remain a qi::Future<T>,