Skip to content

[Bug]: AvaloniaScheduler does not yield to UI thread if dueTime specified #114

@deryaza

Description

@deryaza

Describe the bug 🐞

This commit AvaloniaUI/Avalonia#20957 changed behaviour of DispatchTimer, now it runs on current thread dispatcher, and not on UI dispatcher which breaks Throttle with AvaloniaScheduler specified for example

Step to reproduce

Create a simple app and use Throttle with RxSchedulers.MainThreadScheduler

Reproduction repository

https://github.com/reactiveui/ReactiveUI

Expected behavior

Throttle callback should happen on the UI thread

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

ReactiveUI.Avalonia Version

No response

Additional information ℹ️

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions