3
タスク並列ライブラリ互換メソッドにパラメータとしてコールバック関数を受け入れる既存の非同期メソッドをラップする方法はありますか?既存の非同期メソッドをTPL互換メソッドにラップする
// Existing method
void DoAsync(Action<string> callback) {
...
}
// The desired method should have similar prototype
Task<string> DoAsync() {
// Internally this method should call existing
// version of DoAsync method (see above)
}
ありがとう、ちょうど必要と見て、かなりいいね! – sam