Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问在并发任务或者FIFO任务中,是否存在标示该task完成的API #4

Open
Beseting opened this issue Jun 6, 2021 · 3 comments

Comments

@Beseting
Copy link

Beseting commented Jun 6, 2021

No description provided.

@Beseting Beseting changed the title 请问在并发任务或者FIFO任务中,是否存在标示该task 请问在并发任务或者FIFO任务中,是否存在标示该task完成的API Jun 6, 2021
@Beseting
Copy link
Author

Beseting commented Jun 6, 2021

Task中执行例如网络请求任务,在一定时间后完成网络请求任务,是否存在手动调用该任务完成的API呢? 看文档打log仅有顺序场景,无异步回调场景,如何实现FIFO的网络请求等场景呢?

@Carlyle-Lee
Copy link
Collaborator

Task中执行例如网络请求任务,在一定时间后完成网络请求任务,是否存在手动调用该任务完成的API呢? 看文档打log仅有顺序场景,无异步回调场景,如何实现FIFO的网络请求等场景呢?

TM是支持任务依赖的。通过给任务设定一个id,一般这个id可以在ids.xml中申明。不同模块中,申明同样的id 值即可。
参考TM.executeSync 这个API可以强制任务执行。

@Carlyle-Lee
Copy link
Collaborator

有的。TaskManager.getInstance().registerXXX
这里可以注册任务执行状态的回调。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants