Use Powershell BeginInvoke () and EndInvoke () in Asynchronous Mode

Is there a way to use Powershell BeginInvoke () and EndInvoke () in real asynchronous mode. That is, I just call BeginInvoke (), and then forget to wait for a return or result instead of using EndInvoke. I like the fact that EndInvoke is a callback function that is automatically called when BeginInvoke () completes. The example in MSDN is actually a sync.

How can I use BeginInvoke () and EndInvoke () in real asynchronous mode? Thank.

+3
source share
1 answer
+6

Source: https://habr.com/ru/post/1782870/


All Articles