Skip to content

关于线程阻塞。 #22

Closed Answered by mnixry
nanshaobit asked this question in 问答
Aug 8, 2021 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

如果我没有理解出错的话, 这个阻塞线程问题的应该是在异步函数中采用了同步调用

如果的确是这样, 我们提供了以下工具函数, 通过调用线程池将任意同步步函数调用变为异步, 以避免主线程事件循环被阻塞:

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@qllokirin
Comment options

@yanyongyu
Comment options

@qllokirin
Comment options

@yanyongyu
Comment options

@qllokirin
Comment options

Answer selected by nanshaobit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
4 participants