Skip to content

Add UnsafeSchedule to PipeScheduler that avoids capturing the ExecutionContext #27680

@davidfowl

Description

@davidfowl
public abstract class PipeScheduler
{
    public virtual void UnsafeSchedule(Action<object> callback, object state);
}

All of the layers above the scheduler will capture and restore the ExecutionContext. We should be able to use UnsafeQueueUserWorkItem here instead. Depends on #27507

cc @pakrym @stephentoub

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions