@resonatehq/sdk
Preparing search index...
core
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
,
__namedParameters
?:
{
ikey
?:
string
;
strict
?:
boolean
;
value
?:
any
}
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
__namedParameters
:
{
ikey
?:
string
;
strict
?:
boolean
;
value
?:
any
}
= {}
Returns
Promise
<
DurablePromiseRecord
>
create
create
(
id
:
string
,
timeout
:
number
,
__namedParameters
?:
{
ikey
?:
string
;
param
?:
any
;
strict
?:
boolean
;
tags
?:
Record
<
string
,
string
>
;
}
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
timeout
:
number
__namedParameters
:
{
ikey
?:
string
;
param
?:
any
;
strict
?:
boolean
;
tags
?:
Record
<
string
,
string
>
}
= {}
Returns
Promise
<
DurablePromiseRecord
>
create
With
Task
createWithTask
(
id
:
string
,
timeout
:
number
,
pid
:
string
,
ttl
:
number
,
__namedParameters
?:
{
ikey
?:
string
;
param
?:
any
;
strict
?:
boolean
;
tags
?:
Record
<
string
,
string
>
;
}
,
)
:
Promise
<
{
promise
:
DurablePromiseRecord
;
task
?:
TaskRecord
}
>
Parameters
id
:
string
timeout
:
number
pid
:
string
ttl
:
number
__namedParameters
:
{
ikey
?:
string
;
param
?:
any
;
strict
?:
boolean
;
tags
?:
Record
<
string
,
string
>
}
= {}
Returns
Promise
<
{
promise
:
DurablePromiseRecord
;
task
?:
TaskRecord
}
>
get
get
(
id
:
string
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
Returns
Promise
<
DurablePromiseRecord
>
reject
reject
(
id
:
string
,
__namedParameters
?:
{
ikey
?:
string
;
strict
?:
boolean
;
value
?:
any
}
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
__namedParameters
:
{
ikey
?:
string
;
strict
?:
boolean
;
value
?:
any
}
= {}
Returns
Promise
<
DurablePromiseRecord
>
resolve
resolve
(
id
:
string
,
__namedParameters
?:
{
ikey
?:
string
;
strict
?:
boolean
;
value
?:
any
}
,
)
:
Promise
<
DurablePromiseRecord
>
Parameters
id
:
string
__namedParameters
:
{
ikey
?:
string
;
strict
?:
boolean
;
value
?:
any
}
= {}
Returns
Promise
<
DurablePromiseRecord
>
subscribe
subscribe
(
id
:
string
,
promiseId
:
string
,
timeout
:
number
,
recv
:
string
,
)
:
Promise
<
{
callback
:
undefined
|
CallbackRecord
;
promise
:
DurablePromiseRecord
}
,
>
Parameters
id
:
string
promiseId
:
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...