Trigger the activation, potentially resulting in an event.
(self)
| 128 | |
| 129 | /// Trigger the activation, potentially resulting in an event. |
| 130 | pub fn schedule(self) -> Option<Event> { |
| 131 | if let Some(activator) = self.activator.upgrade() { |
| 132 | activator.activate(); |
| 133 | } |
| 134 | |
| 135 | self.event |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // We want the activator_queue to act like a min-heap. |