Submits a task that returns a bool and returns a PromiseBool representing the pending result.
Example:
var pool = WorkerPool.withDefault ();
var promise = pool.submitBool (() => { return true; });
bool result = promise.await ();
pool.shutdown ();
| task |
the task to execute. |
|
a PromiseBool for the pending result. |