Package | Description |
---|---|
net.sandius.rembulan.exec |
Provides a high-level execution interface to the runtime based on continuations.
|
net.sandius.rembulan.runtime |
Provides the core runtime functionality.
|
Modifier and Type | Interface and Description |
---|---|
interface |
OneShotContinuation
A one-shot continuation, i.e., a continuation that may be resumed at most once.
|
Modifier and Type | Method and Description |
---|---|
Continuation |
CallPausedException.getContinuation()
Get the continuation of the paused call.
|
Continuation |
CallInitialiser.newCall(Object fn,
Object... args)
Returns the Lua call
fn(args...) reified as a continuation. |
Modifier and Type | Method and Description |
---|---|
void |
CallEventHandler.async(Object id,
Continuation cont,
AsyncTask task)
Callback triggered by a request by the call with the identifier
id to be
resumed after the task task has been completed. |
static Object[] |
DirectCallExecutor.execute(Continuation continuation)
Executes
continuation in the current thread in a scheduling context
that never asks the execution to pause, returning the call result once the call completes. |
static Object[] |
DirectCallExecutor.execute(Continuation continuation,
SchedulingContext schedulingContext)
Resumes
continuation in the current thread in the scheduling context
schedulingContext , returning the call result once the call completes. |
static Object[] |
DirectCallExecutor.execute(Continuation continuation,
SchedulingContext schedulingContext,
boolean convertResultsToJava)
Resumes
continuation in the current thread in the scheduling context
schedulingContext , returning the call result once the call completes. |
void |
CallEventHandler.paused(Object id,
Continuation cont)
Callback triggered when the execution of the call with the identifier
id
is paused. |
Object[] |
DirectCallExecutor.resume(Continuation continuation)
Resumes
continuation in the current thread, returning the call result once
the call completes. |
Constructor and Description |
---|
CallPausedException(Continuation continuation)
Constructs a new instance of
CallPausedException with the specified
continuation. |
Modifier and Type | Method and Description |
---|---|
Continuation |
RuntimeCallInitialiser.newCall(Object fn,
Object... args) |
Copyright © 2016. All rights reserved.