future |
To hold the future result of a user supplied function, use a future. When the redeem member is called, two possible actions occur. If the user function has finished and returned a value, the redeem function returns the value. If the user function is still executing, the redeem function will block until the return value can be obtained.
Thread<ToolKit>
#include <ospace/thread/future.h>
class os_future
true if the
value contained in future has already been fetched.Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.