Share via


RunspacePool.BeginClose(AsyncCallback, Object) Method

Definition

Closes the RunspacePool asynchronously and cleans all the internal resources. This will close all the runspaces in the runspacepool and release all the async operations waiting for a runspace. If the pool is already closed or broken or closing this will just return.

public:
 IAsyncResult ^ BeginClose(AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginClose (AsyncCallback callback, object state);
member this.BeginClose : AsyncCallback * obj -> IAsyncResult
Public Function BeginClose (callback As AsyncCallback, state As Object) As IAsyncResult

Parameters

callback
AsyncCallback

A AsyncCallback to call once the BeginClose completes.

state
Object

A user supplied state to call the callback with.

Returns

An AsyncResult object to monitor the state of the async operation.

Applies to