Skip to content

Use coroutine to fetch flight data off main thread#10

Merged
nbschultz97 merged 1 commit intomainfrom
codex/convert-fetchflightdata-to-suspend-function-wocofw
Sep 11, 2025
Merged

Use coroutine to fetch flight data off main thread#10
nbschultz97 merged 1 commit intomainfrom
codex/convert-fetchflightdata-to-suspend-function-wocofw

Conversation

@nbschultz97
Copy link
Owner

Summary

  • Make fetchFlightData a suspend function
  • Launch fetchFlightData on Dispatchers.IO within startScan
  • Cancel coroutine scope on stopScan

Testing

  • ./gradlew test (fails: No such file or directory)

https://chatgpt.com/codex/tasks/task_e_68c331bc0e8c8328b6c6b391aba554d1

@nbschultz97 nbschultz97 merged commit 386b401 into main Sep 11, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant