-
Notifications
You must be signed in to change notification settings - Fork 147
async
Charlotte Skardon edited this page Feb 7, 2023
·
3 revisions
Methods on IGraphClient
that have an Async
suffix on their name work with the await
keyword.
This means you can write code like this:
var node = await client.GetAsync<NamedNode>(625);
Console.WriteLine(node.Data.Name);
That code will drop back to a kernel-level IO completion port while the underlying network request is in progress. (Albeit at some expense of managing such marshalling, so don't just use the async methods blindly.)