與this question相關,我試圖實現一個使用WinRT API設置桌面牆紙的過程。爲了模仿C#中的await功能,我使用了TTask.Future(link),如here和here所述。 我的實現看起來是這樣的: class procedure TUtilityWin.SetWallpaper(AFileName: String);
var
lStorageFile: ISto
我正試圖圍繞C++協程功能包裹我的頭。我讀了肯尼的文章(C++ - Introducing C++/WinRT),也試着看這個演示文稿,CppCon 2016: James McNellis 「Introduction to C++ Coroutines"。我不斷看到非空的「函數」,沒有某種形式的return語句。作爲例子,請參閱Kenny文章中的以下代碼示例。 PrintFeedAsync函數/