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

A typo in README? Undefined variable “dt” #149

Closed
LionNatsu opened this issue Jan 2, 2024 · 1 comment
Closed

A typo in README? Undefined variable “dt” #149

LionNatsu opened this issue Jan 2, 2024 · 1 comment
Assignees

Comments

@LionNatsu
Copy link

LionNatsu commented Jan 2, 2024

I found many dt.expires_after in README.md, for example:

// a single threaded main running on an io_context
cobalt::main co_main(int argc, char ** argv)
{
    // wrapper around asio::steady_timer
    asio::steady_timer tim{co_await cobalt::this_coro::executor};
    dt.expires_after(std::chrono::milliseconds(100));

    co_await tim.async_wait(cobalt::use_op);
    co_return 0;
}

Does the dt really mean tim or certain global variable defined elsewhere?

@klemens-morgenstern
Copy link
Collaborator

Should be tim. Thanks for reporting!

@klemens-morgenstern klemens-morgenstern self-assigned this Jan 9, 2024
klemens-morgenstern added a commit that referenced this issue Mar 15, 2024
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

No branches or pull requests

2 participants