Skip to content

Releases: symplely/coroutine

BC - General Reworking, Bug Fixes, Code Cleanup, Name Changes

09 Mar 02:32
Compare
Choose a tag to compare
  • removed deprecated
  • insure only actual message is rethrow in Task result()
  • make all classes final, have shutdown handle if called by signal handler or any task
  • add Windows signal constants if libuv is loaded
  • added methods/functions for basic UV file system operations
  • added function to control file operations by child/subprocess or libuv thread pool, will use other if not install.
  • additional libuv system tests
  • keep Task error trace
  • updated UV libuv stubs
  • add option to display child subprocess output
  • rename example files
  • deprecated awaitProcess
  • added spawn_system to quickly run any PHP build in system command in subprocess
  • added more examples and general functions for non libuv usage
  • add option for Processor Channel class to be passed into subprocess parameters
  • add option to pass in a task to use for real-time subprocess interaction
  • rework Channel class, grab task object instead and return to caller
  • update channel test to show usage between coroutine tasks
  • additional shorthand file operation functions, update all to return false on failure except file_read and file_write, for now, will also be changed to return false instead.
  • add async replacement methods for file_get_contents and file_put_…contents
  • various bug fixes

1.6.2

21 Feb 21:06
Compare
Choose a tag to compare
bug fixes, gather wasn't properly handling errors and cancelled tasks

1.6.1: deprecations, corrections, updates

21 Feb 03:18
Compare
Choose a tag to compare
  • deprecated gatherOptions
  • added gatherWait() combines gatherOptions with gather()
  • refactor gather() to follow more of Python's specs
  • more test coverage

Update required version, additional BC from `symplely/processor`

19 Feb 04:05
Compare
Choose a tag to compare
  • update gather to check if task id is valid task, throw if not
  • update docs/readme in reference to future libuv extension addition.
  • added signal constants to base, mainly for Windows, always use pcntl if Linux
  • added working libuv tests/examples from https://github.com/bwoebi/php-uv
  • added return value() function when placed insure any function/method is
    awaitable and to capture return value for gather()

1.5.0: update, added/tested `libuv` signal feature, giving Windows POSIX han…

09 Feb 12:33
Compare
Choose a tag to compare
…dling

- use `hrtime` high resolution time, if PHP 7.3
- update `shutdown` kill/stop any running subprocess
- rework `gather` to better handle exceptions
- added `IS_WINDOWS` and `IS_LINUX` constants

1.4.3: added `spawn_task()` to quickly add/execute code in a subprocess, in …

06 Feb 19:59
Compare
Choose a tag to compare
…parallel

- drop deprecated
- name changes
- bug fixes, corrections

more corrections, update readme, docblocks, ci setup, test coverage

05 Feb 17:25
Compare
Choose a tag to compare

1.4.1: corrections, name changes, code cleanup, drop deprecated

05 Feb 02:43
Compare
Choose a tag to compare
- have consistent naming for bool like functions
- ignore some code coverage until `libuv` is added
- updated tests and examples to be inline with current release
- added and removed deprecated routines
- updated readme, added a clearer coroutine meaning used here

1.4.0: code cleanup, BC renaming - have consistent naming for bool like func…

21 Jan 02:16
Compare
Choose a tag to compare

General refactoring/preparing for `libuv`, an native event loop engine, which bring BC

16 Jan 23:46
Compare
Choose a tag to compare
  • this version deprecating functions/methods await, parallelInstance, processInstance, createSubProcess, taskList, completedList, updateCompleted
  • added function spawn_process() wil launch sub process, and return task id, and away() will create task and return task id
  • added signaling functionality, signals are possible on Windows with libuv https://github.com/bwoebi/php-uv, this will be in version 2.0
  • added private methods for using libuv, to be call by current methods
  • improved docblock commenting