Skip to content

reactive-tasks 1.3.0 - #6

Merged
rinekri merged 1 commit into
masterfrom
feature/1.3.0
Nov 11, 2026
Merged

rinekri merged 1 commit into
masterfrom
feature/1.3.0

Conversation

@rinekri

@rinekri rinekri commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

reactive-tasks 1.3.0. Source compatible with 1.2.0, additive only.

Apps migrated from remo 1.x restart a model with a new scope (model.start(scope) again after the old scope ended). Cancelling scheduler.scope kills the scheduler for good, so apps had to stop work with a helper that relies on how registerTask builds task scopes (CompletableJob children of scheduler.scope). This adds a public call for it.

Added

  • Scheduler.cancelAll(): cancels the jobs of all tasks and all other coroutines launched in scheduler.scope; the scheduler stays usable (tasks start and coroutines launch again). The scheduler tracks the task scope jobs it creates instead of guessing by job type.

Docs

  • Scheduler.scope KDoc: cancelling it makes the scheduler unusable, use cancelAll to stop and start again.
  • README: cancelAll() example; remo map rows for remo 1.x restart (invokeOnCompletion { scheduler.cancelAll() } on each start) and onPostStart (1.x: a model start(scope) function called where model.start was, not init {}).
  • CHANGELOG 1.3.0, versionName=1.3.0.

Tests
JVM and Android host: SchedulerTest 22/22 (1 new: cancelAllCancelsJobsAndCoroutinesAndKeepsSchedulerUsable), ObserveStateChangesTest 18/18, ConcurrentCollectionsTest 5/5. iOS test binary links; iOS tests run on CI only.

@rinekri
rinekri merged commit 3e63ede into master Nov 11, 2026
1 check passed
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