Releases: symplely/coroutine
Releases · symplely/coroutine
BC - General Reworking, Bug Fixes, Code Cleanup, Name Changes
- 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
andfile_write
, for now, will also be changed to return false instead. - add async replacement methods for
file_get_contents
andfile_put_…contents
- various bug fixes
1.6.2
bug fixes, gather wasn't properly handling errors and cancelled tasks
1.6.1: deprecations, corrections, updates
- deprecated gatherOptions
- added
gatherWait()
combinesgatherOptions
withgather()
- refactor
gather()
to follow more of Python's specs - more test coverage
Update required version, additional BC from `symplely/processor`
- 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 forgather()
1.5.0: update, added/tested `libuv` signal feature, giving Windows POSIX han…
…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 …
…parallel - drop deprecated - name changes - bug fixes, corrections
more corrections, update readme, docblocks, ci setup, test coverage
1.4.2 Update Core.php
1.4.1: corrections, name changes, code cleanup, drop deprecated
- 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…
General refactoring/preparing for `libuv`, an native event loop engine, which bring BC
- this version deprecating functions/methods
await
,parallelInstance
,processInstance
,createSubProcess
,taskList
,completedList
,updateCompleted
- added function
spawn_process()
wil launch sub process, and returntask id
, andaway()
will create task and returntask 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