C# 클래스 Corlib.Threading.Tasks.AsyncResultExtensions

Extension methods for IAsyncResult
파일 보기 프로젝트 열기: GeorgeTsiokos/corlib

공개 메소드들

메소드 설명
ToTask ( this asyncResult, System.TimeSpan timeout = null, AsyncCallback asyncCallback = null ) : IDisposable

Converts a IAsyncResult in to a disposable task

Calling dispose releases the resources held to create the task (the task will no longer timeout or complete)

메소드 상세

ToTask() 공개 정적인 메소드

Converts a IAsyncResult in to a disposable task
Calling dispose releases the resources held to create the task (the task will no longer timeout or complete)
public static ToTask ( this asyncResult, System.TimeSpan timeout = null, AsyncCallback asyncCallback = null ) : IDisposable
asyncResult this the object to convert
timeout System.TimeSpan an optional timeout
asyncCallback AsyncCallback optional callback when the /// asynchrounous operation completes
리턴 IDisposable