Interface IThunkAPI
Base interface for the Thunk API.
Namespace: Unity.AppUI.Redux
Assembly: Unity.AppUI.Redux.dll
Syntax
public interface IThunkAPI
Properties
cancellationToken
The cancellation token of the thunk (if any).
Declaration
CancellationToken cancellationToken { get; }
Property Value
Type | Description |
---|---|
CancellationToken |
isCancellationRequested
Whether the thunk has been cancelled.
Declaration
bool isCancellationRequested { get; }
Property Value
Type | Description |
---|---|
bool |
requestId
The request id of the thunk.
Declaration
string requestId { get; }
Property Value
Type | Description |
---|---|
string |
store
The store that the thunk is dispatching to.
Declaration
IDispatchable store { get; }
Property Value
Type | Description |
---|---|
IDispatchable |
Methods
Abort(object)
Cancels the thunk with a reason.
Declaration
void Abort(object reason)
Parameters
Type | Name | Description |
---|---|---|
object | reason | The reason for the cancellation. |