Skip to content

Welshman Docs / @welshman/app / Thunk

Class: Thunk ​

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

Constructors ​

Constructor ​

new Thunk(options): Thunk

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

Parameters ​

options ​

ThunkOptions

Returns ​

Thunk

Properties ​

_subs ​

_subs: Subscriber<Thunk>[] = []

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


controller ​

controller: AbortController

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


details ​

details: Record<string, string> = {}

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


event ​

event: TrustedEvent

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


options ​

readonly options: ThunkOptions

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


result ​

result: Deferred<PublishStatusByRelay, PublishStatusByRelay>

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


status ​

status: PublishStatusByRelay = {}

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

Methods ​

_fail() ​

_fail(message): void

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

Parameters ​

message ​

string

Returns ​

void


_notify() ​

_notify(): void

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

Returns ​

void


publish() ​

publish(): Promise<void>

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

Returns ​

Promise<void>


subscribe() ​

subscribe(subscriber): () => void

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

Parameters ​

subscriber ​

Subscriber<Thunk>

Returns ​

(): void

Returns ​

void