Feature #2331
closed
Added by Junxiao Shi almost 10 years ago.
Updated almost 10 years ago.
Description
Add a helper method to Signal
template to hook a handler that executes only once.
Connection connectSingleShot(Handler handler);
The connection will be automatically disconnected after handle is executed once.
I suggest the name connectSingleShot
for the new method.
By the way, would this API addition provide a solution for #2313 note-5 ?
- Description updated (diff)
I agree with the name in note-2.
FaceTable::remove
will be connected as single shot, but a single-shot connection is like any other Connection, and this won't solve #2313 note-5 problem.
- Status changed from New to In Progress
- Status changed from In Progress to Code review
Why this feature is necessary? What is the use case?
Why this feature is necessary? What is the use case?
See #2300 note-10.
- Status changed from Code review to Closed
Also available in: Atom
PDF