note 128688 added to parallel-channel.send

From: Date: Thu, 06 Jul 2023 12:58:19 +0000
Subject: note 128688 added to parallel-channel.send
Groups: php.notes 
Request: Send a blank email to php-notes+get-220649@lists.php.net to get a copy of this message
You can get error named "Segmentation failed" if you will send closure to Channel in some thread (what you already created by "Runtime::run") not on top of code (look like inside of some recursive function) For resolve this problem better way use some queue and add you closure in you functions and execute it after your recursive functions where you can add your closure for executing ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.168 (proxied: 83.220.237.14) ---- Manual Page -- https://php.net/manual/en/parallel-channel.send.php Edit -- https://main.php.net/note/edit/128688 Del: integrated -- https://main.php.net/note/delete/128688/integrated Del: useless -- https://main.php.net/note/delete/128688/useless Del: bad code -- https://main.php.net/note/delete/128688/bad+code Del: spam -- https://main.php.net/note/delete/128688/spam Del: non-english -- https://main.php.net/note/delete/128688/non-english Del: in docs -- https://main.php.net/note/delete/128688/in+docs Del: other reasons-- https://main.php.net/note/delete/128688 Reject -- https://main.php.net/note/reject/128688 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220649) next »