Skip to content

1.4.0: startIfIdle, startSuspendedIfIdle, bindTo, results - #7

Merged
rinekri merged 1 commit into
masterfrom
feature/1.4.0-idle-helpers
Nov 11, 2026
Merged

rinekri merged 1 commit into
masterfrom
feature/1.4.0-idle-helpers

Conversation

@rinekri

@rinekri rinekri commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Adds the Scheduler helpers that apps currently copy locally. Additive only.

  • startIfIdle(handle, argument, tag) / startIfIdle(handle): atomic check+start, returns JobHandle? (null if dropped)
  • startSuspendedIfIdle(handle, argument, tag) / startSuspendedIfIdle(handle): startSuspended unless a job runs, returns JobState? (null if dropped, does not wait). Not atomic, documented.
  • bindTo(scope): cancelAll() when the scope's job completes
  • results(handle, replayLast = true): Flow<kotlin.Result>
  • kotlinx-atomicfu moved from iosMain to commonMain (implementation) for the lock
  • README API section and remo migration map, CHANGELOG 1.4.0, version 1.4.0

Checked locally: jvmTest, testAndroidHostTest, assemble, iOS compile. iOS simulator tests were not run (no simulator SDK here).

@rinekri
rinekri merged commit 747bbf7 into master Nov 11, 2026
1 check passed
@rinekri
rinekri deleted the feature/1.4.0-idle-helpers branch November 11, 2026 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant