Skip to content

Welshman Docs / @welshman/app / Thunk

Class: Thunk ​

Defined in: app/src/thunk.ts:55

Constructors ​

Constructor ​

new Thunk(options): Thunk

Defined in: app/src/thunk.ts:64

Parameters ​

options ​

ThunkOptions

Returns ​

Thunk

Properties ​

_subs ​

_subs: Subscriber<Thunk>[] = []

Defined in: app/src/thunk.ts:56


controller ​

controller: AbortController

Defined in: app/src/thunk.ts:62


details ​

details: Record<string, string> = {}

Defined in: app/src/thunk.ts:61


event ​

event: TrustedEvent

Defined in: app/src/thunk.ts:58


options ​

readonly options: ThunkOptions

Defined in: app/src/thunk.ts:64


result ​

result: Deferred<PublishStatusByRelay, PublishStatusByRelay>

Defined in: app/src/thunk.ts:59


status ​

status: PublishStatusByRelay = {}

Defined in: app/src/thunk.ts:60

Methods ​

_fail() ​

_fail(message): void

Defined in: app/src/thunk.ts:85

Parameters ​

message ​

string

Returns ​

void


_notify() ​

_notify(): void

Defined in: app/src/thunk.ts:79

Returns ​

void


_setAborted() ​

_setAborted(relay): void

Defined in: app/src/thunk.ts:107

Parameters ​

relay ​

string

Returns ​

void


_setPending() ​

_setPending(relay): void

Defined in: app/src/thunk.ts:94

Parameters ​

relay ​

string

Returns ​

void


_setTimeout() ​

_setTimeout(relay): void

Defined in: app/src/thunk.ts:100

Parameters ​

relay ​

string

Returns ​

void


publish() ​

publish(): Promise<void>

Defined in: app/src/thunk.ts:114

Returns ​

Promise<void>


subscribe() ​

subscribe(subscriber): () => void

Defined in: app/src/thunk.ts:194

Parameters ​

subscriber ​

Subscriber<Thunk>

Returns ​

(): void

Returns ​

void