ocean.task.util.QuickRun

Simple utility to run a delegate inside a task while automatically starting event loop behind the scen. Intended for usage in script-like programs, does a new allocation each call.

Members

Functions

quickRun
int quickRun(int delegate() dg)

Turns dg into a task and runs it through scheduler. Starts the event loop automatically and will finish only when all tasks finish and no registered events remain (or theScheduler.shutdown is called).

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).