Repository navigation
Fix yield, shield, and checkCanceled to work from main thread - #183
Conversation
Previously rt.yield() returned immediately when called from main, preventing tasks from running. Now yield, beginShield, endShield, and checkCanceled all work correctly from the main thread context.
📝 WalkthroughWalkthroughModified cooperative yielding to exclude main task queuing, refactored shield and cancellation logic to use a unified Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (6)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
rt.yield()to actually run tasks when called from main (was returning immediately)beginShield,endShield, andcheckCanceledto work from main thread contextTest plan
./check.shpasses (213 tests)