Interface IAPIInterceptor<TPayload>
A Thunk API that can early reject or fulfill the thunk with a value.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface IAPIInterceptor<in TPayload>
Type Parameters
Name | Description |
---|---|
TPayload | The type of the payload that the thunk will return. |
Methods
FulFillWithValue(TPayload)
Fulfills the thunk with a value.
Declaration
void FulFillWithValue(TPayload value)
Parameters
Type | Name | Description |
---|---|---|
TPayload | value | The value to fulfill the thunk with. |
RejectWithValue(TPayload)
Rejects the thunk with a reason.
Declaration
void RejectWithValue(TPayload value)
Parameters
Type | Name | Description |
---|---|---|
TPayload | value | The reason for the rejection. |