Skip to content

Commit

Permalink
docs(deprecations): fix some typos in Scheduler Argument (#7119)
Browse files Browse the repository at this point in the history
* docs(deprecations): fix some typos in Scheduler Argument

* docs(deprecations): apply PR suggestions

Ref. #7119 (review)

(cherry picked from commit 5353ca4)
  • Loading branch information
BrainCrumbz authored and jakovljevic-mladen committed Mar 31, 2023
1 parent e72b33a commit 1ce681b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs_app/content/deprecations/scheduler-argument.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ To support this transition the [scheduled creation function](/api/index/function

## How to Refactor

If you use any other operator from the list above and using the `scheduler` argument, you have to three potential refactoring options.
If you use any operator from the above list and you're passing the `scheduler` argument, you have three potential refactoring options.

### Refactoring of `of` and `from`

`scheduled` is kinda copying the behavior of `from`. Therefore if you used `from` with a `scheduler` argument, you can just replace them.

For the `of` creation function you need to this Observable with `scheduled` and instead of passing the `scheduler` argument to `of` pass it to `scheduled`.
For the `of` creation function you need to replace this Observable with `scheduled` and instead of passing the `scheduler` argument to `of` pass it to `scheduled`.
Following code example demonstrate this process.

```ts
Expand Down

0 comments on commit 1ce681b

Please sign in to comment.