gpt4 book ai didi

powershell - 以异步方式使用 Powershell 的 BeginInvoke() 和 EndInvoke()

转载 作者:行者123 更新时间:2023-12-03 14:07:10 30 4
gpt4 key购买 nike

有没有办法以真正的异步方式使用 Powershell 的 BeginInvoke() 和 EndInvoke()。也就是说,我只是调用 BeginInvoke() 然后忘记而不是使用 EndInvoke 来等待返回或结果。我喜欢 EndInvoke 是一个回调函数,当 BeginInvoke() 完成时自动调用。
The example on MSDN实际上是一个同步的。

如何以真正的异步方式使用 BeginInvoke() 和 EndInvoke()?谢谢。

最佳答案

关于powershell - 以异步方式使用 Powershell 的 BeginInvoke() 和 EndInvoke(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4568014/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com