You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Patrick Meinecke edited this page Apr 30, 2018
·
1 revision
Interacting with async/await based API's is the primary reason this module was created. Here are some examples to demonstrate how to use this module to accomplish that.
First sets a variable $result in the current scope. This is done because PSLambda can access variables from the scope it was created it. It then initiates Dns.BeginResolve and then returns to the prompt. Once BeginResolve has been completed, the $result variable will be populated with the return value of Dns.EndResolve.
Creates a task that completes after 10 seconds. After that task completes, continue it with a task that returns a string, then with a task that writes that string to the console.