Actions
Feature #2331
closedSignal: once
Start date:
Due date:
% Done:
0%
Estimated time:
1.00 h
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.
Updated by Junxiao Shi over 9 years ago
- Blocks Task #2300: Face: use Signal added
Updated by Davide Pesavento over 9 years ago
I suggest the name connectSingleShot
for the new method.
Updated by Davide Pesavento over 9 years ago
By the way, would this API addition provide a solution for #2313 note-5 ?
Updated by Junxiao Shi over 9 years ago
- 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.
Updated by Junxiao Shi over 9 years ago
- Status changed from In Progress to Code review
Updated by Alex Afanasyev over 9 years ago
Why this feature is necessary? What is the use case?
Updated by Junxiao Shi over 9 years ago
Why this feature is necessary? What is the use case?
See #2300 note-10.
Updated by Junxiao Shi over 9 years ago
- Status changed from Code review to Closed
Actions