Welshman Docs / @welshman/app / Thunk
Class: Thunk ​
Defined in: app/src/thunk.ts:56
Constructors ​
Constructor ​
new Thunk(
options
):Thunk
Defined in: app/src/thunk.ts:65
Parameters ​
options ​
Returns ​
Thunk
Properties ​
_subs ​
_subs:
Subscriber
<Thunk
>[] =[]
Defined in: app/src/thunk.ts:57
controller ​
controller:
AbortController
Defined in: app/src/thunk.ts:63
details ​
details:
Record
<string
,string
> ={}
Defined in: app/src/thunk.ts:62
event ​
event:
TrustedEvent
Defined in: app/src/thunk.ts:59
options ​
readonly
options:ThunkOptions
Defined in: app/src/thunk.ts:65
result ​
result:
Deferred
<PublishStatusByRelay
,PublishStatusByRelay
>
Defined in: app/src/thunk.ts:60
status ​
status:
PublishStatusByRelay
={}
Defined in: app/src/thunk.ts:61
Methods ​
_fail() ​
_fail(
message
):void
Defined in: app/src/thunk.ts:79
Parameters ​
message ​
string
Returns ​
void
_notify() ​
_notify():
void
Defined in: app/src/thunk.ts:73
Returns ​
void
publish() ​
publish():
Promise
<void
>
Defined in: app/src/thunk.ts:88
Returns ​
Promise
<void
>
subscribe() ​
subscribe(
subscriber
): () =>void
Defined in: app/src/thunk.ts:176
Parameters ​
subscriber ​
Subscriber
<Thunk
>
Returns ​
():
void
Returns ​
void