-
Notifications
You must be signed in to change notification settings - Fork 525
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
调用函数 void coroutine_resume_im(coroutine_t *co) 时,没有保证 coroutine_t 的状态为 Ready 或 Suspend #84
Comments
协程的block是有重入吗?理论上正常使用不应该进入这里 |
I am getting these same crashes in crash logs from the app I recently added coswift to.
The crash is on the assert at the bottom of the function, indicating the coroutine status is neither ready nor suspended. My usage is fairly straightforward, launching a single coroutine with several async functions using a channel to suspend the coroutine while performing some database I/O. I will swap the channels out to use promises instead and note if the crashes continue afterwards. |
After changing the |
Could you provide the demo code? |
This seems to be resolved with a change I made to ensure canceling an active coroutine before dismissing a view controller. |
堆栈
推测崩溃的代码行:coroutine.m:237
The text was updated successfully, but these errors were encountered: