Skip to content

Commit

Permalink
Fix subscribe_on: forward the scheduler to the source.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcafhe committed Feb 20, 2025
1 parent 66699e0 commit 9416838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reactivex/operators/_subscribeon.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def subscribe(

def action(scheduler: abc.SchedulerBase, state: Optional[Any] = None):
d.disposable = ScheduledDisposable(
scheduler, source.subscribe(observer)
scheduler, source.subscribe(observer, scheduler=scheduler)
)

m.disposable = scheduler.schedule(action)
Expand Down

0 comments on commit 9416838

Please sign in to comment.