File tree 3 files changed +17
-3
lines changed
3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2019 Cees-Jan Kiewiet
3
+ Copyright (c) 2025 Cees-Jan Kiewiet
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 12
12
To install via [ Composer] ( http://getcomposer.org/ ) , use the command below, it will automatically detect the latest version and bind it with ` ~ ` .
13
13
14
14
```
15
- composer require react-parallel/runtime
15
+ composer require react-parallel/runtime
16
16
```
17
17
18
18
# Usage
@@ -36,7 +36,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
36
36
37
37
## License ##
38
38
39
- Copyright 2019 [ Cees-Jan Kiewiet] ( http://wyrihaximus.net/ )
39
+ Copyright 2025 [ Cees-Jan Kiewiet] ( http://wyrihaximus.net/ )
40
40
41
41
Permission is hereby granted, free of charge, to any person
42
42
obtaining 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