Skip to content

Commit 4c11ac7

Browse files
committed
Actually remove launch
1 parent 903edcb commit 4c11ac7

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/functions.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22

33
namespace Revolt;
44

5-
/**
6-
* Executes the given callback in a new fiber.
7-
*
8-
* Any exceptions thrown are forwarded to the event loop error handler. The return value of the function is discarded.
9-
*
10-
* @param callable():void $callback
11-
*/
12-
function launch(callable $callback): void
13-
{
14-
$fiber = new \Fiber(__NAMESPACE__ . '\\EventLoop\\Internal\\run');
15-
EventLoop::queue([$fiber, 'start'], $callback);
16-
}
17-
185
/**
196
* Returns the current time relative to an arbitrary point in time.
207
*

0 commit comments

Comments
 (0)