Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hfhbd/testing-coroutines
https://github.com/hfhbd/testing-coroutines
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/hfhbd/testing-coroutines
- Owner: hfhbd
- License: apache-2.0
- Created: 2021-11-22T19:35:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-04T04:31:38.000Z (8 months ago)
- Last Synced: 2024-04-04T05:31:39.931Z (8 months ago)
- Language: Swift
- Size: 208 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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