File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -392,21 +392,6 @@ public static function getSuspension(): Suspension
392392 return self ::getDriver ()->getSuspension ();
393393 }
394394
395- /**
396- * Returns an object used to suspend and resume execution of the current fiber or {main}.
397- *
398- * Calls from the same fiber will return the same suspension object.
399- *
400- * @return Suspension
401- *
402- * @deprecated This old name is only kept temporarily to allow smooth transitions from 0.1 to 0.2 and will be
403- * removed at a later point.
404- */
405- public static function createSuspension (): Suspension
406- {
407- return self ::getDriver ()->getSuspension ();
408- }
409-
410395 /**
411396 * Run the event loop.
412397 *
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ public function testSuspensionWithinFiber(): void
199199
200200 public function testDoubleResumeWithinFiber (): void
201201 {
202- $ suspension = EventLoop::createSuspension ();
202+ $ suspension = EventLoop::getSuspension ();
203203
204204 EventLoop::queue (static function () use ($ suspension ): void {
205205 $ suspension ->resume ();
You can’t perform that action at this time.
0 commit comments