@resonatehq/sdk
Preparing search index...
Promises
Class Promises
Index
Constructors
constructor
Methods
callback
cancel
create
create
With
Task
get
reject
resolve
subscribe
Constructors
constructor
new
Promises
(
network
?:
Network
)
:
Promises
Parameters
network
:
Network
= ...
Returns
Promises
Methods
callback
callback
(
promiseId
:
string
,
rootPromiseId
:
string
,
recv
:
string
,
timeout
:
number
,
)
:
Promise
<
{
callback
:
undefined
|
CallbackRecord
;
promise
:
DurablePromiseRecord
}
,
>
Parameters
promiseId
:
string
rootPromiseId
:
string
recv
:
string
timeout
:
number
Returns
Promise
<
{
callback
:
undefined
|
CallbackRecord
;
promise
:
DurablePromiseRecord
}
>
cancel
cancel
(
id
:
string
,
iKey
?:
undefined
|
string
,
strict
?:
boolean
,
value
?:
any
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
iKey
:
undefined
|
string
= undefined
strict
:
boolean
= false
value
:
any
= undefined
Returns
Promise
<
DurablePromiseRecord
>
create
create
(
id
:
string
,
timeout
:
number
,
iKey
?:
undefined
|
string
,
strict
?:
boolean
,
param
?:
any
,
tags
?:
undefined
|
Record
<
string
,
string
>
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
timeout
:
number
iKey
:
undefined
|
string
= undefined
strict
:
boolean
= false
param
:
any
= undefined
tags
:
undefined
|
Record
<
string
,
string
>
= undefined
Returns
Promise
<
DurablePromiseRecord
>
create
With
Task
createWithTask
(
id
:
string
,
timeout
:
number
,
processId
:
string
,
ttl
:
number
,
iKey
?:
undefined
|
string
,
strict
?:
boolean
,
param
?:
any
,
tags
?:
undefined
|
Record
<
string
,
string
>
,
)
:
Promise
<
{
promise
:
DurablePromiseRecord
;
task
?:
TaskRecord
}
>
Parameters
id
:
string
timeout
:
number
processId
:
string
ttl
:
number
iKey
:
undefined
|
string
= undefined
strict
:
boolean
= false
param
:
any
= undefined
tags
:
undefined
|
Record
<
string
,
string
>
= undefined
Returns
Promise
<
{
promise
:
DurablePromiseRecord
;
task
?:
TaskRecord
}
>
get
get
(
id
:
string
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
Returns
Promise
<
DurablePromiseRecord
>
reject
reject
(
id
:
string
,
iKey
?:
undefined
|
string
,
strict
?:
boolean
,
value
?:
any
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
iKey
:
undefined
|
string
= undefined
strict
:
boolean
= false
value
:
any
= undefined
Returns
Promise
<
DurablePromiseRecord
>
resolve
resolve
(
id
:
string
,
iKey
?:
undefined
|
string
,
strict
?:
boolean
,
value
?:
any
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
iKey
:
undefined
|
string
= undefined
strict
:
boolean
= false
value
:
any
= undefined
Returns
Promise
<
DurablePromiseRecord
>
subscribe
subscribe
(
id
:
string
,
timeout
:
number
,
recv
:
string
,
)
:
Promise
<
{
callback
:
undefined
|
CallbackRecord
;
promise
:
DurablePromiseRecord
}
,
>
Parameters
id
:
string
timeout
:
number
recv
:
string
Returns
Promise
<
{
callback
:
undefined
|
CallbackRecord
;
promise
:
DurablePromiseRecord
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
callback
cancel
create
create
With
Task
get
reject
resolve
subscribe
@resonatehq/sdk
Loading...