Skip to content

Refactor call state to its own module.#30

Open
aebrahim wants to merge 1 commit into
DelfinaCare:mainfrom
aebrahim:refactor_state
Open

Refactor call state to its own module.#30
aebrahim wants to merge 1 commit into
DelfinaCare:mainfrom
aebrahim:refactor_state

Conversation

@aebrahim

@aebrahim aebrahim commented Dec 6, 2024

Copy link
Copy Markdown
Member

No description provided.

@aebrahim aebrahim force-pushed the refactor_state branch 4 times, most recently from e6b0d14 to 4ca2545 Compare January 29, 2026 14:30
Comment thread once/_base.py
call_state = self._state_factory()
with call_state.lock:
if not call_state.called:
call_state.return_value = _iterator_wrappers.GeneratorWrapper(

@GhaithqD GhaithqD Mar 24, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

_iterator_wrappers.GeneratorWrapper takes an allow_reset parameter which we used to pass originally before the refactoring, now allow_reset is not passed and is mainly used in _wrap, doesn't this mean if we pass any *args the first arg might be bound to allow_reset?

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