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

refactor(generator): generators use context.Context instead of stopflag #438

Conversation

CodeLieutenant
Copy link
Contributor

In process of removing the stopFlag from gemini's codebase, first step is to migrate the Value Generators for patitions. Using context with generators make a lot more sense then the custom built, stopFlag. context is built-in package in Go, and this is it's usecase - cancelation propagation to background task.

@CodeLieutenant CodeLieutenant added the enhancement New feature or request label Nov 27, 2024
@CodeLieutenant CodeLieutenant self-assigned this Nov 27, 2024
@CodeLieutenant CodeLieutenant force-pushed the refactor/generators-to-context branch from cf35363 to e3aae54 Compare November 28, 2024 19:32
@CodeLieutenant CodeLieutenant added this to the Gemini 1.9 milestone Nov 28, 2024
In process of removing the `stopFlag` from gemini's codebase,
first step is to migrate the `Value Generators` for patitions.
Using context with generators make a lot more sense then the custom
built, `stopFlag`. `context` is built-in package in Go, and
this is it's usecase - cancelation propagation to background task.

Signed-off-by: Dusan Malusev <[email protected]>
@CodeLieutenant CodeLieutenant force-pushed the refactor/generators-to-context branch 2 times, most recently from fdff5c2 to 10e784b Compare November 28, 2024 22:14
@CodeLieutenant CodeLieutenant force-pushed the refactor/generators-to-context branch from 10e784b to f2f6a23 Compare November 28, 2024 22:23
@fruch
Copy link
Collaborator

fruch commented Dec 2, 2024

@CodeLieutenant

start with describing the problem this PR is solving, and why do we need this change

@CodeLieutenant
Copy link
Contributor Author

@CodeLieutenant

start with describing the problem this PR is solving, and why do we need this change

I'll do that in an issue

@CodeLieutenant CodeLieutenant linked an issue Dec 2, 2024 that may be closed by this pull request
@CodeLieutenant
Copy link
Contributor Author

@fruch I've explained the issue with #442

@fruch
Copy link
Collaborator

fruch commented Dec 3, 2024

@fruch I've explained the issue with #442

O.k. now mark this PR to be closing #442

@CodeLieutenant CodeLieutenant deleted the refactor/generators-to-context branch December 23, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stopFlag sometimes does not stop
2 participants