Class: FFZWaitableEvent<TData, TReturn>
utilities/events.FFZWaitableEvent
Type parameters
Name | Type |
---|---|
TData | TData |
TReturn | void |
Hierarchy
FFZEvent
<TData
>↳
FFZWaitableEvent
Constructors
constructor
• new FFZWaitableEvent<TData
, TReturn
>(data
): FFZWaitableEvent
<TData
, TReturn
>
Type parameters
Name | Type |
---|---|
TData | TData |
TReturn | void |
Parameters
Name | Type |
---|---|
data | TData |
Returns
FFZWaitableEvent
<TData
, TReturn
>
Inherited from
Defined in
Methods
_reset
▸ _reset(): void
Returns
void
Overrides
Defined in
_wait
▸ _wait(): void
| Promise
<TReturn
[]>
Returns
void
| Promise
<TReturn
[]>
Defined in
preventDefault
▸ preventDefault(): void
Returns
void
Inherited from
Defined in
stopPropagation
▸ stopPropagation(): void
Returns
void
Inherited from
Defined in
waitFor
▸ waitFor(promise
): void
Parameters
Name | Type |
---|---|
promise | Promise <TReturn > |
Returns
void
Defined in
makeEvent
▸ makeEvent<TData
, TReturn
>(data
): TypedFFZWaitableEvent
<TData
, TReturn
>
Create a new FFZWaitableEvent with proper type inheritence from the supplied data. This should always be used to construct an event instance, rather than creating the event manually.
Type parameters
Name | Type |
---|---|
TData | extends Record <string , any > = {} |
TReturn | void |
Parameters
Name | Type |
---|---|
data | TData |
Returns
TypedFFZWaitableEvent
<TData
, TReturn
>