YohDeadfall / Kinetic

A lightweight implementation of the Reactive framework.
MIT License
14 stars 1 forks source link

Added an ability to inspect state machine chains #151

Closed YohDeadfall closed 3 months ago

YohDeadfall commented 3 months ago

That pull request improves debugging experience, so a dev using Kinetic can easily check what state machine a chain of LINQ calls produced:

var source = new PublishSubject<int>();
var observer = source   // + observable
                        // ├ ObserverStateMachine
    .Where(x => x > 0)  // ├ WhereStateMachind
    .Select(x => x + 1) // ├ SelectStateMachineelectStateMachine
    .ToObservable();    // └ ObservableStateMachine