10[BadInteropApi(
"Concurrent",
true)]
32 [BadMethod(
"GetCurrent",
"Returns the Current Task")]
33 [
return: BadReturn(
"The Current Task")]
43 [BadMethod(
"Run",
"Runs a Task")]
44 private void AddTask([BadParameter(description:
"The Task that will be executed")]
BadTask task)
55 [BadMethod(
"Create",
"Creates a new Task")]
56 [
return: BadReturn(
"The Created Task")]
Implements a Task Object.
static BadTask Create(BadFunction f, BadExecutionContext caller, string? name, params BadObject[] args)
Creates a new Task from a Function.
Implements the 'Concurrent' API.
BadTaskRunnerApi(BadTaskRunner runner)
Creates a new API Instance.
static BadTask CreateTask(BadExecutionContext caller, [BadParameter(description:"The Function that will be executed within the task.")] BadFunction func)
Creates a new Task.
readonly BadTaskRunner m_Runner
The Runner Instance.
BadObject GetCurrentTask()
Returns the Current Task.
void AddTask([BadParameter(description:"The Task that will be executed")] BadTask task)
Adds a Task to the Runner.
The BadScript Task Runner.
void AddTask(BadTask task, bool runImmediately=false)
Adds a Task to the Task Runner.
static readonly BadTaskRunner Instance
The Task Runner Instance.
The Execution Context. Every execution of a script needs a context the script is running in....
The Base Class for all BadScript Objects.
static readonly BadObject Null
The Null Value for the BadScript Language.
Implements a function that can be called from the script.
Contains task/async Extensions and Integrations for the BadScript2 Runtime.
Contains Runtime Function Objects.
Contains the Runtime Objects.
Contains the Runtime Implementation.