Interface IAsyncDalamudPlugin
This interface represents a basic Dalamud plugin that loads and unloads asynchronously. All plugins have to implement either Dalamud.Plugin.IDalamudPlugin or Dalamud.Plugin.IAsyncDalamudPlugin.
Assembly: Dalamud.dll​
Declaration
public interface IAsyncDalamudPlugin : IAsyncDisposable
Methods​
LoadAsync(CancellationToken)​
Performs plugin-defined tasks associated with loading the plugin asynchronously.
The plugin will not be considered loaded until this method completes, and will not
be unloaded until System.IAsyncDisposable.DisposeAsync completes.
Declaration
Task LoadAsync(CancellationToken cancellationToken)
Returns​
System.Threading.Tasks.Task: A task that represents the asynchronous load operation.
Parameters​
| Type | Name | Description |
|---|---|---|
System.Threading.CancellationToken | cancellationToken | A token that can be used to cancel the load operation. If cancellation is requested, |
the plugin should throw System.OperationCanceledException to signal that it | ||
| did not fully load. Dalamud will not consider the plugin loaded in this case. | ||
System.IAsyncDisposable.DisposeAsync will still be called. |