From 6a168e970acd8b79fec2aa6409f472bf1f896235 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sun, 9 Feb 2025 14:50:51 +0100 Subject: [PATCH] Add example --- LICENSE | 2 +- README.md | 4 ++-- examples/run.php | 14 ++++++++++++++ 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 examples/run.php diff --git a/LICENSE b/LICENSE index 9324b85..490af37 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Cees-Jan Kiewiet +Copyright (c) 2025 Cees-Jan Kiewiet Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index a4d6f91..ce073d7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`. ``` -composer require react-parallel/runtime +composer require react-parallel/runtime ``` # Usage @@ -36,7 +36,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details. ## License ## -Copyright 2019 [Cees-Jan Kiewiet](http://wyrihaximus.net/) +Copyright 2025 [Cees-Jan Kiewiet](http://wyrihaximus.net/) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation diff --git a/examples/run.php b/examples/run.php new file mode 100644 index 0000000..f6aefb1 --- /dev/null +++ b/examples/run.php @@ -0,0 +1,14 @@ +run(function (): int { + sleep(3); + + return 3; +}), PHP_EOL;