64 if (
"TaskFactory.FromAsync: " ==
null)
74 if (
"TaskFactory.FromAsync: " !=
null)
124 if (
"TaskFactory.FromAsync: " ==
null)
134 if (
"TaskFactory.FromAsync: " !=
null)
150 internal static Task<TResult> FromAsyncImpl<TArg1, TArg2>(
Func<TArg1, TArg2, AsyncCallback, object, IAsyncResult> beginMethod,
Func<IAsyncResult, TResult> endFunction,
Action<IAsyncResult> endAction,
TArg1 arg1,
TArg2 arg2,
object state,
TaskCreationOptions creationOptions)
159 if (
"TaskFactory.FromAsync: " ==
null)
169 if (
"TaskFactory.FromAsync: " !=
null)
172 return "beginMethod";
186 internal static Task<TResult> FromAsyncTrim<TInstance, TArgs>(TInstance
thisRef,
TArgs args,
Func<TInstance, TArgs, AsyncCallback, object, IAsyncResult> beginMethod,
Func<TInstance, IAsyncResult, TResult> endMethod)
where TInstance :
class
235 while (asyncResult ==
null)
class f__AnonymousType0<< Count > j__TPar
void Complete(TInstance thisRef, Func< TInstance, IAsyncResult, TResult > endMethod, IAsyncResult asyncResult, bool requiresSynchronization)
static FromAsyncTrimPromise()
static readonly AsyncCallback s_completeFromAsyncResult
Func< TInstance, IAsyncResult, TResult > m_endMethod
static void CompleteFromAsyncResult(IAsyncResult asyncResult)
FromAsyncTrimPromise(TInstance thisRef, Func< TInstance, IAsyncResult, TResult > endMethod)
Task FromAsync< TArg1 >(Func< TArg1, AsyncCallback, object, IAsyncResult > beginMethod, Action< IAsyncResult > endMethod, TArg1 arg1, object state)
static Task< TResult > FromAsyncImpl(Func< AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, object state, TaskCreationOptions creationOptions)
TaskFactory(CancellationToken cancellationToken, TaskCreationOptions creationOptions, TaskContinuationOptions continuationOptions, TaskScheduler scheduler)
TaskContinuationOptions m_defaultContinuationOptions
static Task< TResult > FromAsyncImpl< TArg1 >(Func< TArg1, AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, TArg1 arg1, object state, TaskCreationOptions creationOptions)
static void FromAsyncCoreLogic(IAsyncResult iar, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, Task< TResult > promise, bool requiresSynchronization)
TaskScheduler m_defaultScheduler
Task< TResult > FromAsync(Func< AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endMethod, object state)
TaskCreationOptions m_defaultCreationOptions
static Task< TResult > FromAsyncImpl< TArg1, TArg2 >(Func< TArg1, TArg2, AsyncCallback, object, IAsyncResult > beginMethod, Func< IAsyncResult, TResult > endFunction, Action< IAsyncResult > endAction, TArg1 arg1, TArg2 arg2, object state, TaskCreationOptions creationOptions)
CancellationToken m_defaultCancellationToken
static Task< TResult > FromAsyncTrim< TInstance, TArgs >(TInstance thisRef, TArgs args, Func< TInstance, TArgs, AsyncCallback, object, IAsyncResult > beginMethod, Func< TInstance, IAsyncResult, TResult > endMethod)