-
Notifications
You must be signed in to change notification settings - Fork 1
runtime.promise
load runtime.promise
This module provides the Runtime.Promise helper used to track the state of a coroutine scheduled by the runtime scheduler.
This class represents the state of an asynchronous operation.
| Modifiers | Member | Description |
|---|---|---|
const |
!= | Returns false if other is equal to this promise; otherwise returns true. |
const |
() | Takes the associated operation's result and returns it. If the result is not ... |
const |
== | Returns true if other is equal to this promise; otherwise returns false. |
const |
get | Takes the associated operation's result and returns it. If the result is not ... |
const |
new | Creates a new promise for the result of the coroutine operation. |
| start | Starts the associated operation. |
| Modifiers | Member | Description |
|---|---|---|
final |
coroutine | Internal associated coroutine. |
final |
result | Internal result. |
final |
scheduler | Internal associated scheduler. |
def (const self, const other)
Returns false if other is equal to this promise; otherwise returns true.
def (self)
Takes the associated operation's result and returns it. If the result is not yet available, the method
returns none.
def (const self, const other)
Returns true if other is equal to this promise; otherwise returns false.
null
Internal associated coroutine.
def (self)
Takes the associated operation's result and returns it. If the result is not yet available, the method
returns none.
def (self, scheduler, coroutine)
Creates a new promise for the result of the coroutine operation.
none
Internal result.
null
Internal associated scheduler.
def (self)
Starts the associated operation.
- Introduction
- Variables
-
Built-in-types
- Built-in-types#none
- Built-in-types#null
- Built-in-types#boolean
- Built-in-types#number
- Built-in-types#string
- Built-in-types#regex
- Built-in-types#array
- Built-in-types#hash
- Built-in-types#iterator
- Built-in-types#async_iterator
- Built-in-types#package
- Built-in-types#function
- Built-in-types#coroutine
- Built-in-types#library
- Built-in-types#libobject
- Arithmetic-operations
- Type-casting
- Control-structures
- Function-definition
- User-defined-types
- Work-with-modules