我有一系列 3 个耗时的函数,我想在后台工作人员或其他任何工具中执行它们,我的问题是每个函数都应该等待前一个函数完成,所以这是我的伪代码:
open_session() // during the execution of this function i like to display a loading-window
open_session() //this function opens a process another windows app , while opening this app i would like to keep the current app responsive.
close_session()// during the execution of this function i like to display a loading-window
我想用后台工作者来做这件事,但做功能是异步的。
请提供任何帮助