Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions reactiveui/docs/handbook/rxappbuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,18 @@ You can register custom services and dependencies using the `WithPlatformModule`
.WithPlatformModule<Services.MyPlatformModule>()
```
## Configure Schedulers
You can configure the main thread and task pool schedulers used by ReactiveUI using the `WithMainThreadScheduler` and `WithTaskpoolScheduler` methods.
You can configure the main thread and task pool schedulers used by ReactiveUI using the `WithMainThreadScheduler` and `WithTaskPoolScheduler` methods.
```csharp
.WithMainThreadScheduler(DispatcherScheduler.Current)
.WithTaskpoolScheduler(TaskPoolScheduler.Default)
.WithTaskPoolScheduler(TaskPoolScheduler.Default)
```

The default scheduler extensions register the RxSchedulers.MainThreadScheduler and RxSchedulers.TaskpoolScheduler to use the appropriate schedulers for the platform.
This can be overridden by calling the above methods with `setRxApp = false` to prevent setting the RxApp static properties.

```csharp
.WithMainThreadScheduler(DispatcherScheduler.Current, setRxApp: false)
.WithTaskpoolScheduler(TaskPoolScheduler.Default, setRxApp: false)
.WithTaskPoolScheduler(TaskPoolScheduler.Default, setRxApp: false)
```

Each platform module also registers the appropriate default schedulers for that platform.
Expand Down
Loading