TaskQueue
Object Hierarchy:
Description:
public class TaskQueue :
Object
,
Queue,
Threading
Base class used for common task queueing behavior
Namespace: Bump
Package: bump-0.1
Content:
Properties:
Static methods:
Creation methods:
Methods:
- protected virtual
int
spawn (int
max = -1)
Spawn new threads if appropriate
- public virtual void add (owned
SourceFunc
task, int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Add a task to the queue
- public virtual
bool
process (TimeSpan
wait = 0)
- public virtual G execute<G> (Callback<G> func,
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Execute a callback, blocking until it is done
- public virtual async G execute_async<G> (owned Callback<G> func,
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Execute a callback asynchronously in an idle callback
- public virtual async G execute_background<G> (owned Callback<G> func,
int
priority = DEFAULT
, Cancellable
? cancellable = null) throws Error
Execute a callback in a background thread