Test::Async::Job - a job record task
Class defines a job entry for Test::Async::JobMgr.
Int:D $.idJob ID number. Autoincerements.
Callable:D $.codeUser code to be executed.
Bool $.asyncIf True then the job must be executed asynchronously.
Promise $.promiseJob completion promise. Undefined until the job is invoked. Set to a Promise instance as soon as job starts execution and is kept with job code return value.
start(-- Promise:D)>Starts job in a thread.
invoke(-- Promise:D)>Starts job instantly in the current thread.
is-started(-- Bool)>True if job has been started.
is-completed(-- Bool)>True if job has completed.
Test::Async::JobMgr, Test::Async::Hub
Vadim Belman <vrurg@cpan.org>