xtd 0.2.0
Loading...
Searching...
No Matches

◆ queue_user_work_item() [2/2]

static bool xtd::threading::thread_pool::queue_user_work_item ( const wait_callback callback,
std::any  state 
)
static

Queues a method for execution. The method executes when a thread pool thread becomes available.

Parameters
callbackA pointer function that represents the method to be executed.
stateAn object containing data to be used by the method.
Returns
true if the method is successfully queued; NotSupportedException is thrown if the work item could not be queued