Welshman Docs / @welshman/app / Thunk
Class: Thunk ​
Defined in: app/src/thunk.ts:62
Constructors ​
Constructor ​
new Thunk(
options):Thunk
Defined in: app/src/thunk.ts:70
Parameters ​
options ​
Returns ​
Thunk
Properties ​
_subs ​
_subs:
Subscriber<Thunk>[] =[]
Defined in: app/src/thunk.ts:63
complete ​
complete:
Deferred<void,void>
Defined in: app/src/thunk.ts:67
controller ​
controller:
AbortController
Defined in: app/src/thunk.ts:68
event ​
event:
TrustedEvent
Defined in: app/src/thunk.ts:65
options ​
readonlyoptions:ThunkOptions
Defined in: app/src/thunk.ts:70
results ​
results:
PublishResultsByRelay={}
Defined in: app/src/thunk.ts:66
Methods ​
_fail() ​
_fail(
detail):void
Defined in: app/src/thunk.ts:98
Parameters ​
detail ​
string
Returns ​
void
_notify() ​
_notify():
void
Defined in: app/src/thunk.ts:92
Returns ​
void
_setAborted() ​
_setAborted(
result):void
Defined in: app/src/thunk.ts:122
Parameters ​
result ​
Returns ​
void
_setPending() ​
_setPending(
result):void
Defined in: app/src/thunk.ts:110
Parameters ​
result ​
Returns ​
void
_setTimeout() ​
_setTimeout(
result):void
Defined in: app/src/thunk.ts:116
Parameters ​
result ​
Returns ​
void
publish() ​
publish():
Promise<void>
Defined in: app/src/thunk.ts:128
Returns ​
Promise<void>
subscribe() ​
subscribe(
subscriber): () =>void
Defined in: app/src/thunk.ts:202
Parameters ​
subscriber ​
Subscriber<Thunk>
Returns ​
():
void
Returns ​
void