mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 08:28:54 +00:00
Switching fibers in destructors is not possible
Added a notice to document the fact that it's currently impossible to switch fibers in the destructor of an object cfr https://github.com/php/php-src/issues/8723. Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de> Closes GH-1620.
This commit is contained in:
parent
4bf21e8867
commit
55956ac4e2
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,11 @@
|
|||
or by throwing an exception into the fiber using <methodname>Fiber::throw</methodname>. The value is returned
|
||||
(or exception thrown) from <methodname>Fiber::suspend</methodname>.
|
||||
</para>
|
||||
<note>
|
||||
<simpara>
|
||||
Due to current limitations it is not possible to switch fibers in the destructor of an object.
|
||||
</simpara>
|
||||
</note>
|
||||
|
||||
<example xml:id="language.fiber.example.basic"><!-- {{{ -->
|
||||
<title>Basic usage</title>
|
||||
|
|
Loading…
Reference in a new issue