Skip to content

Applies to

netstandard2.0

IDisposable QueueUserWorkItem(Action<object?> action, object? state)

Summary: Queues a method for execution.

Parameters

NameTypeDescription
actionActionMethod to execute.
stateobject?State to pass to the method.

Returns: IDisposable -- Disposable object that can be used to cancel the queued method.