File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -112,4 +112,27 @@ public function disable(string $eventIdentifier);
112
112
* @return void
113
113
*/
114
114
public function cancel (string $ eventIdentifier );
115
+
116
+ /**
117
+ * Reference an event.
118
+ *
119
+ * This will keep the event loop alive whilst the event is still being monitored. Events have this state by default.
120
+ *
121
+ * @param string $eventIdentifier The event identifier.
122
+ *
123
+ * @return void
124
+ */
125
+ public function reference (string $ eventIdentifier );
126
+
127
+ /**
128
+ * Unreference an event.
129
+ *
130
+ * The event loop should exit the run method when only unreferenced events are still being monitored. Events are all
131
+ * referenced by default.
132
+ *
133
+ * @param string $eventIdentifier The event identifier.
134
+ *
135
+ * @return void
136
+ */
137
+ public function unreference (string $ eventIdentifier );
115
138
}
You can’t perform that action at this time.
0 commit comments