Skip to content

Commit

Permalink
Merge 8f127b8 into 7211831
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrattli committed Mar 5, 2022
2 parents 7211831 + 8f127b8 commit 226ecf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 4 additions & 3 deletions reactivex/__init__.py
Expand Up @@ -302,12 +302,13 @@ def defer(
---1--2--3--|
Example:
>>> res = reactivex.defer(lambda: of(1, 2, 3))
>>> res = reactivex.defer(lambda scheduler: of(1, 2, 3))
Args:
factory: Observable factory function to invoke for each observer
which invokes :func:`subscribe() <reactivex.Observable.subscribe>` on
the resulting sequence.
which invokes :func:`subscribe()
<reactivex.Observable.subscribe>` on the resulting sequence.
The factory takes a single argument, the scheduler used.
Returns:
An observable sequence whose observers trigger an invocation
Expand Down
5 changes: 3 additions & 2 deletions reactivex/observable/defer.py
Expand Up @@ -14,11 +14,12 @@ def defer_(
function whenever a new observer subscribes.
Example:
>>> res = defer(lambda: of(1, 2, 3))
>>> res = defer(lambda scheduler: of(1, 2, 3))
Args:
observable_factory: Observable factory function to invoke for
each observer that subscribes to the resulting sequence.
each observer that subscribes to the resulting sequence. The
factory takes a single argument, the scheduler used.
Returns:
An observable sequence whose observers trigger an invocation
Expand Down

0 comments on commit 226ecf6

Please sign in to comment.