Jump to content

Synchronous concurrency: Difference between revisions

m
Fix Perl 6 -> Raku in comments
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
m (Fix Perl 6 -> Raku in comments)
Line 2,309:
}</lang>
Concurrent units are established by use of the feed operator, which works much like an in-process object pipe. Since the final feed goes to a variable declaration that belongs to the outer thread, it serves as a backchannel from the printer thread. In this case the outer thread signals the desire for a line count by terminating the pipe to the printing thread.
(Note: soon these will be implemented with real threads in Perl 6Raku, but this is currently emulated with coroutine semantics, aka lazy lists.)
 
=={{header|Raven}}==
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.