Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.x: Improve Generate() internals #674

Merged
merged 1 commit into from
Jun 28, 2018

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