-
Notifications
You must be signed in to change notification settings - Fork 30
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
Draft - Single Shot Connection #21
Comments
I'm a bit confused about this, don't we need a special method for single shot connection, like |
That should work as well. I was just thinking that something like this should maybe be possible: mySignal.connect([](const auto &handle) {
// do thing
handle.disconnect();
}); More of a thought experiment than anything substantial. An approach like that wouldn't need another But it's also incompatible with the current connect function I think, so don't know if it's worth continuing down. Introducing a Anyhow, some food for thought. |
The basics of reflective connections were layed out in #23, so we may want to revisit this idea :) |
Complete as of #70 |
A single shot connection could possibly be implemented by creating a binding that captures its own ConnectionHandle and disconnects it when the signal is emitted.
Open question: How to capture the ConnectionHandle in the slot itself?
The text was updated successfully, but these errors were encountered: