Skip to content

reactive-tasks 1.1.0 - #4

Merged
rinekri merged 3 commits into
masterfrom
feature/1.1.0
Nov 9, 2026
Merged

rinekri merged 3 commits into
masterfrom
feature/1.1.0

Conversation

@rinekri

@rinekri rinekri commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

reactive-tasks 1.1.0. Source and binary compatible with 1.0.0.

Added

  • jobStates(handle, replayFinished = false): states of one task. It never completes on job cancellation, and it replays a running job's state to late subscribers. With replayFinished = true it also replays the last finished job (success or error) when nothing is running.
  • successResults(handle, replayFinished): Flow<R> and errors(handle, replayFinished): Flow<Throwable>.
  • JobState.resultOf(handle): R? reads the result typed by the task's result type. JobState itself stays untyped.
  • isRunning(handle).
  • observeStateChanges(handle, completeOnJobCancel). The 1-argument overload is kept.
  • README: remo 1.2.0 / 9.0.1 to reactive-tasks mapping table.

Fixed

  • observeStateChanges(handle) emitted the states of all tasks and closed when any job was cancelled. It now emits and closes only for jobs of handle.
  • The default onUncaughtException printed the task id and name in swapped order.

@rinekri
rinekri merged commit f07892c into master Nov 9, 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.

2 participants