Job

NAME

Test::Async::Job - a job record task

DESCRIPTION

Class defines a job entry for Test::Async::JobMgr.

ATTRIBUTES

Int:D $.id

Job ID number. Autoincerements.

Callable:D $.code

User code to be executed.

Bool $.async

If True then the job must be executed asynchronously.

Promise $.promise

Job 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.

METHODS

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.

SEE ALSO

Test::Async::JobMgr, Test::Async::Hub

AUTHOR

Vadim Belman [email protected]

Test::Async v0.0.16

Thread-safe testing framework

Authors

  • Vadim Belman

License

Artistic-2.0

Dependencies

Test Dependencies

Provides

  • Test::Async
  • Test::Async::Aggregator
  • Test::Async::Base
  • Test::Async::Decl
  • Test::Async::Event
  • Test::Async::Hub
  • Test::Async::Job
  • Test::Async::JobMgr
  • Test::Async::Metamodel::BundleClassHOW
  • Test::Async::Metamodel::BundleHOW
  • Test::Async::Metamodel::HubHOW
  • Test::Async::Metamodel::ReporterHOW
  • Test::Async::Reporter
  • Test::Async::Reporter::TAP
  • Test::Async::Result
  • Test::Async::TestTool
  • Test::Async::Utils
  • Test::Async::When
  • Test::Async::X

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.