- #endregion
-
- #region FromAsync
- const string errorMsg = "Mono's thread pool doesn't support this operation yet";
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync (IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod)
- {
- return FromAsync (asyncResult, endMethod, options);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync (IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod,
- TaskCreationOptions creationOptions)
- {
- return FromAsync (asyncResult, endMethod, creationOptions);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync (IAsyncResult asyncResult, Func<IAsyncResult, TResult> endMethod,
- TaskCreationOptions creationOptions, TaskScheduler scheduler)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync (Func<AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- object state)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync (Func<AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- object state, TaskCreationOptions creationOptions)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync<TArg1> (Func<TArg1, AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- TArg1 arg1, object state)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync<TArg1> (Func<TArg1, AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- TArg1 arg1, object state, TaskCreationOptions creationOptions)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync<TArg1, TArg2> (Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- TArg1 arg1, TArg2 arg2, object state)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync<TArg1, TArg2> (Func<TArg1, TArg2, AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync<TArg1, TArg2, TArg3> (Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- TArg1 arg1, TArg2 arg2, TArg3 arg3, object state)
- {
- throw new NotSupportedException (errorMsg);
- }
-
- [MonoLimitation(errorMsg)]
- public Task<TResult> FromAsync<TArg1, TArg2, TArg3> (Func<TArg1, TArg2, TArg3, AsyncCallback, Object, IAsyncResult> beginMethod,
- Func<IAsyncResult, TResult> endMethod,
- TArg1 arg1, TArg2 arg2, TArg3 arg3, object state,
- TaskCreationOptions creationOptions)
- {
- throw new NotSupportedException (errorMsg);
- }
- #endregion
-
- public TaskScheduler Scheduler {
- get {
- return scheduler;
- }
- }
-
- public TaskContinuationOptions ContinuationOptions {
- get {
- return contOptions;
- }
- }
-
- public TaskCreationOptions CreationOptions {
- get {
- return options;
- }
- }
-
- public CancellationToken CancellationToken {
- get {
- return token;