submitBool


Description:

public PromiseBool submitBool (owned TaskFunc<bool> task)

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 ();

Parameters:

task

the task to execute.

Returns:

a PromiseBool for the pending result.