File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2019 Cees-Jan Kiewiet
3+ Copyright (c) 2025 Cees-Jan Kiewiet
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 1212To install via [ Composer] ( http://getcomposer.org/ ) , use the command below, it will automatically detect the latest version and bind it with ` ~ ` .
1313
1414```
15- composer require react-parallel/runtime
15+ composer require react-parallel/runtime
1616```
1717
1818# Usage
@@ -36,7 +36,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
3636
3737## License ##
3838
39- Copyright 2019 [ Cees-Jan Kiewiet] ( http://wyrihaximus.net/ )
39+ Copyright 2025 [ Cees-Jan Kiewiet] ( http://wyrihaximus.net/ )
4040
4141Permission is hereby granted, free of charge, to any person
4242obtaining a copy of this software and associated documentation
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use ReactParallel \Runtime \Runtime ;
4+ use ReactParallel \EventLoop \EventLoopBridge ;
5+
6+ require __DIR__ . '/../vendor/autoload.php ' ;
7+
8+ $ runtime = Runtime::create (new EventLoopBridge ());
9+
10+ echo $ runtime ->run (function (): int {
11+ sleep (3 );
12+
13+ return 3 ;
14+ }), PHP_EOL ;
You can’t perform that action at this time.
0 commit comments