Several functions that used delegates to return values async now use async/await.