Web3PromiEvent <ResolveType, EventMap>
Hierarchy
- Web3EventEmitter<EventMap>
- Web3PromiEvent
Implements
- Promise<ResolveType>
Index
Constructors
publicconstructor
Type parameters
- ResolveType
- EventMap: Web3EventMap
Parameters
executor: PromiseExecutor<ResolveType>
Returns Web3PromiEvent<ResolveType, EventMap>
Properties
public[toStringTag]
Methods
publiccatch
Type parameters
- TResult = never
Parameters
optionalonrejected: (reason: unknown) => TResult | PromiseLike<TResult>
Returns Promise<ResolveType | TResult>
publicemit
Type parameters
- K: string
Parameters
eventName: K
params: EventMap[K]
Returns void
publiceventNames
Returns (string | symbol)[]
publicfinally
Parameters
optionalonfinally: () => void
Returns Promise<ResolveType>
publicgetMaxListeners
Returns number
publiclistenerCount
Type parameters
- K: string
Parameters
eventName: K
Returns number
publiclisteners
Type parameters
- K: string
Parameters
eventName: K
Returns (...args: any[]) => void[]
publicoff
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<EventMap[K]>
Returns void
publicon
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<EventMap[K]>
Returns this
publiconce
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<EventMap[K]>
Returns this
publicremoveAllListeners
Returns EventEmitter
publicsetMaxListenerWarningThreshold
Parameters
maxListenersWarningThreshold: number
Returns void
publicthen
Type parameters
- TResult1 = ResolveType
- TResult2 = never
Parameters
optionalonfulfilled: (value: ResolveType) => TResult1 | PromiseLike<TResult1>
optionalonrejected: (reason: unknown) => TResult2 | PromiseLike<TResult2>
Returns Promise<TResult1 | TResult2>