Cancelling a Windows Runtime asynchronous operation, part 3: C++/CX with PPL, coroutine style

1 · Raymond Chen · July 3, 2020, 2:20 p.m.
Last time, we looked at how task cancellation is projected in C++/CX with PPL and explicit continuations. But how about C++/CX with PPL and coroutines? auto picker = ref new FileOpenPicker(); picker->FileTypeFilter.Append(L".txt"); cancellation_token_source cts; call<bool> do_cancel([cts](bool) { cts.cancel(); }); timer<bool> delayed_cancel(3000U, The post Cancelling a Windows Runtime asynchronous operation, part 3: C++/CX with PPL, coroutine style appeared first on The Old New Thing....