Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hfhbd/testing-coroutines


https://github.com/hfhbd/testing-coroutines

Last synced: about 4 hours ago
JSON representation

Awesome Lists containing this project

README

        

# testing-coroutines

Testing `Flow.collect` on iOS with new memory manager.

## Result

Collecting on MainThread is still required up to Kotlin 1.7.20. Swift 5.5 async/await and the new `AsyncStream` allows comfortable usage.

With Kotlin 1.7.20 and `kotlin.native.binary.objcExportSuspendFunctionLaunchThreadRestriction=none`, using the MainThread is not required anymore.

## Building

1. `./gradlew assembleXCFramework generateSPM`
2. Open `Package.swift` in iOS folder with Xcode
3. Run the ios tests