I want to write a WinRT component with async support using WRL, but I found create_async()
is undefined even I included the ppltask.h
and using namespace concurrency
How to create a background task with WRL pattern?
My function is like:
HRESULT GetStreamAsync([out, retval] IAsyncOperation<IRRandomAccessStream*>** operation);
I also try to use IThreadPoolStatics->RunAsync()
, but seems it only can be used in case of IAsyncAction
and without return value. Does anyone can help?