coobjc icon indicating copy to clipboard operation
coobjc copied to clipboard

coobjc provides coroutine support for Objective-C and Swift. We added await method、generator and actor model like C#、Javascript and Kotlin. For convenience, we added coroutine categories for some Fo...

Results 29 coobjc issues
Sort by recently updated
recently updated
newest added

### Summary ivar should be released when deallocing or the empty `NSMutableArray` will be leaked. ### Checklist Before you create this PR confirm that it meets all requirements listed below...

chan.send_noblock之后,await接受到值,但是之后的线程被改变成新的线程

Use `co_delay()` cause a circular reference between `COTimeChan` and `CODispatchTimer`

您好, 我现在也在调研协程的实现, 我发现很多有栈协程方案, 进入协程之后, 就无法获得完整的函数调用栈, 这样对于调试和线上问题定位不是很友好, 但是coobjc是可以获得完整函数调用栈的, 请问这个实现的方案是什么呢? 是通过fishhook来实现的么? 能否给点思路? 谢谢~~

### Context and Description cofishhook crash when open our project. ### Environment Details * coobjc version:1.2.0 * iOS version:15.0 * Xcode version:13.0

### 如题,协程的取消Cancle需要怎么使用,目前调用没有效果? ```objc /** Cancel the job. @discussion If you want a `COPromise` be cancellable, you must make the job cancel in `onCancel:`. */ - (void)cancel; /** Set the onCancelBlock....

### Summary Provide a general description of the code changes in your pull request... were there any bugs you had fixed? If so, mention them like 'fixes #x'. If these...

To prepare the way for a new concurrency model, the compiler now emits a warning and fix-it for unqualified uses of await as an identifier. Those identifers will be interpreted...

### Context and Description ### Environment Details * coobjc version:master * iOS version: 12 * Xcode version:142.4 * Other informations: ### Expected behavior 文件改成.mm编译出错。 ### Actual behavior .mm 文件改成.m编译可以成功 ###...