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

src: allow generic C++ callables in SetImmediate() #28704

Closed

Commits on Jul 26, 2019

  1. src: allow generic C++ callables in SetImmediate()

    Modify the native `SetImmediate()` functions to take generic C++
    callables as arguments. This makes passing arguments to the callback
    easier, and in particular, it allows passing `std::unique_ptr`s
    directly, which in turn makes sure that the data they point to is
    deleted if the `Environment` is torn down before the callback can run.
    addaleax committed Jul 26, 2019
    Copy the full SHA
    9d04047 View commit details
    Browse the repository at this point in the history