Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (33 sloc) 0.712 kb
class Rosella.Event.Dispatcher
{
function dispatch(var e, var cb)
{
Rosella.Error.must_subclass(__CLASS__);
}
}
class Rosella.Event.Dispatcher.Immediate : Rosella.Event.Dispatcher
{
function Immediate() { }
function dispatch(var e, var cb)
{
cb(e);
}
}
class Rosella.Event.Dispatcher.Task : Rosella.Event.Dispatcher
{
function Task() { }
function dispatch(var e, var cb)
{
var t = new 'Task'(cb);
t.data(e);
schedule(t);
}
}
class Rosella.Event.Dispatcher.Thread : Rosella.Event.Dispatcher
{
function Thread() { }
function dispatch(var e, var cb)
{
Rosella.Error.not_implemented(__FUNCTION__);
}
}
Jump to Line
Something went wrong with that request. Please try again.