Skip to content

Conversation

akarnokd
Copy link
Collaborator

Inline the function callback fields into the sinks, remove init-to-default code, pass some parameters in calls instead of fields.

}

private TState _state;
private bool _first;

public void Run()
public void Run(IScheduler _scheduler)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assign the scheduler also in the constructor?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The _scheduler is only required when starting the operator and is no longer needed after that in the Loop(Rec) body.

@danielcweber danielcweber merged commit 262544b into dotnet:master Jun 28, 2018
@akarnokd akarnokd deleted the GenerateCleanup branch June 28, 2018 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants