Lines Matching refs:then
924 std::is_same<typename _FunctorTypeTraits<_Function>::_Argument1Type, task<_ExpectedParameterType>>::value, "incorrect parameter type for the callable object in 'then'; consider _ExpectedParameterType or task<_ExpectedParameterType> (see below)");
929 //if there is a continuation parameter, then must use void/no return value
935 std::is_same<typename _FunctorTypeTraits<_Function>::_Argument1Type, task<_ExpectedParameterType>>::value, "incorrect parameter type for the callable object in 'then'; consider _ExpectedParameterType or task<_ExpectedParameterType> (see below)");
944 static_assert(std::is_same<typename _FunctorTypeTraits<_Function>::_Argument1Type, decltype(_To_task())>::value, "incorrect parameter type for the callable object in 'then'; consider _ExpectedParameterType or task<_ExpectedParameterType> (see below)");
1247 // We determine the origin of a task continuation by looking at where .then is called, so we can tell whether
1626 // or then method) that encountered this exception, or the set_exception call for a task_completion_event.
1663 // a task constructor or the then method, the task created by that method is the one that encountered this exception. If the call
1945 /// The default context is used if you don't specifiy a continuation context when you call the <c>then</c> method. In Windows
1948 /// apartment aware task is the apartment where <c>then</c> is invoked.
1957 // The callback context is created with the context set to CaptureDeferred and resolved when it is used in .then()
2066 /// Task option that specify a continuation context. This is valid only for continuations (then)
2078 /// Task option that specify a cancellation token and a continuation context. This is valid only for continuations (then)
2586 // call to execute the continuation. If it then happens to do something which waits on the ancestor (say it calls .get(), which
2938 // If the ancestor was canceled, then your own execution should be canceled.
3080 // If the ancestor was canceled, then your own execution should be canceled.
3222 // off the inner task which does the appropriate funnelling to the outer one. We use _Then instead of then to prevent
3297 // Callstack for function call (constructor or .then) that created this task impl.
3304 // Points to the source code instruction right after the function call (constructor or .then) that created this task impl.
3934 //If an exception was already set on this event, then cancel the task with the stored exception.
4163 /// continuations(<c>then</c>), and join(<c>when_all</c>) and choice(<c>when_any</c>) patterns.
4187 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
4207 // task is not usable and should throw if any wait(), get() or then() APIs are used.
4228 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
4286 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
4335 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
4362 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
4436 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
4443 auto then(const _Function& _Func) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType
4451 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
4476 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
4484 auto then(const _Function& _Func, task_options _TaskOptions) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType
4486 auto then(const _Function& _Func, Concurrency::cancellation_token _CancellationToken) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType
4494 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
4519 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
4526 auto then(const _Function& _Func, task_continuation_context _ContinuationContext) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType
4529 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
4557 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
4564 auto then(const _Function& _Func, Concurrency::cancellation_token _CancellationToken, task_continuation_context _ContinuationContext) const -> typename details::_ContinuationTypeTraits<_Function, _ReturnType>::_TaskOfType
4572 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
4759 /// Sets a field in the task impl to the return address for calls to the task constructors and the then method.
4773 /// An internal version of then that takes additional flags and always execute the continuation inline by default.
5058 // If the ancestor was canceled, then your own execution should be canceled.
5400 throw Concurrency::invalid_operation("then() cannot be called on a default constructed task.");
5410 /// The one and only implementation of then for void and non-void tasks.
5423 throw Concurrency::invalid_operation("then() cannot be called on a default constructed task.");
5480 /// continuations(<c>then</c>), and join(<c>when_all</c>) and choice(<c>when_any</c>) patterns.
5501 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
5521 // task is not usable and should throw if any wait(), get() or then() APIs are used.
5538 then</c>
5586 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
5634 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
5661 /// A default constructed task cannot be used until you assign a valid task to it. Methods such as <c>get</c>, <c>wait</c> or <c>then</c>
5735 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
5742 auto then(const _Function& _Func) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType
5745 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
5769 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
5777 auto then(const _Function& _Func, task_options _TaskOptions = task_options()) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType
5783 auto then(const _Function& _Func, Concurrency::cancellation_token _CancellationToken) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType
5786 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
5809 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
5816 auto then(const _Function& _Func, task_continuation_context _ContinuationContext) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType
5819 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
5848 /// The overloads of <c>then</c> that take a lambda or functor that returns a Windows::Foundation::IAsyncInfo interface, are only available
5856 auto then(const _Function& _Func, Concurrency::cancellation_token _CancellationToken, task_continuation_context _ContinuationContext) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType
5863 auto then(const _Function& _Func, Concurrency::cancellation_token _CancellationToken, task_continuation_context _ContinuationContext) const -> typename details::_ContinuationTypeTraits<_Function, void>::_TaskOfType
5866 // Do not move the next line out of this function. It is important that _ReturnAddress() evaluate to the the call site of then.
6010 /// Sets a field in the task impl to the return address for calls to the task constructors and the then method.
6025 /// An internal version of then that takes additional flags and executes the continuation inline. Used for runtime internal continuations only.
7630 // Note: if currentStatus_ == _Current, then there was no intervening write
7773 _M_task.then([=](_TaskType _Antecedent) -> HRESULT {
9439 /// then repetitively as long as it returns true.
9445 return first.then