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

Deprecated setEx, instead by start(cb, ex) #400

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

poor-circle
Copy link
Contributor

Why

deprecated Lazy::setEx() instead by Lazy::start(cb,ex), which is may not expected behavior.

What is changing

  1. deprecated Lazy::setEx()
  2. add Lazy::start(cb,ex), which will start a coroutine and binding it to a new executor without scheduling immediately.

Example

async_simple/coro/Lazy.h Outdated Show resolved Hide resolved
@poor-circle
Copy link
Contributor Author

resolved

@ChuanqiXu9 ChuanqiXu9 merged commit 0419130 into alibaba:main Nov 7, 2024
14 checks passed
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