Web3PromiEvent <ResolveType, EventMap>
Hierarchy
- Web3EventEmitter<EventMap>
- Web3PromiEvent
Implements
- Promise<ResolveType>
Index
Constructors
constructor
Type parameters
- ResolveType
- EventMap: Web3EventMap
Parameters
executor: PromiseExecutor<ResolveType>
Returns Web3PromiEvent<ResolveType, EventMap>
Properties
[toStringTag]
Methods
catch
Type parameters
- TResult = never
Parameters
optionalonrejected: (reason: unknown) => TResult | PromiseLike<TResult>
Returns Promise<ResolveType | TResult>
emit
Type parameters
- K: string
Parameters
eventName: K
params: EventMap[K]
Returns void
eventNames
Returns (string | symbol)[]
finally
Parameters
optionalonfinally: () => void
Returns Promise<ResolveType>
getMaxListeners
Returns number
listenerCount
Type parameters
- K: string
Parameters
eventName: K
Returns number
listeners
Type parameters
- K: string
Parameters
eventName: K
Returns (...args: any[]) => void[]
off
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<EventMap[K]>
Returns void
on
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<EventMap[K]>
Returns this
once
Type parameters
- K: string
Parameters
eventName: K
fn: Web3EventCallback<EventMap[K]>
Returns this
removeAllListeners
Returns EventEmitter
setMaxListenerWarningThreshold
Parameters
maxListenersWarningThreshold: number
Returns void
then
Type parameters
- TResult1 = ResolveType
- TResult2 = never
Parameters
optionalonfulfilled: (value: ResolveType) => TResult1 | PromiseLike<TResult1>
optionalonrejected: (reason: unknown) => TResult2 | PromiseLike<TResult2>
Returns Promise<TResult1 | TResult2>