projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c355877
)
Documentation of async
author
Artur Bergman
<sky@nanisky.com>
Tue, 7 May 2002 21:18:44 +0000
(21:18 +0000)
committer
Artur Bergman
<sky@nanisky.com>
Tue, 7 May 2002 21:18:44 +0000
(21:18 +0000)
p4raw-id: //depot/perl@16454
ext/threads/threads.pm
patch
|
blob
|
history
diff --git
a/ext/threads/threads.pm
b/ext/threads/threads.pm
index f76d55bbb5198e257fede25b2e0ffb01bb75f6f9..4aba309f0c729f6b61a77e2529b7dfd664240dd5 100755
(executable)
--- a/
ext/threads/threads.pm
+++ b/
ext/threads/threads.pm
@@
-167,6
+167,13
@@
However this is highly depending on the underlying thread implmentation.
This will return a list of all non joined, non detached threads.
+=item async BLOCK;
+
+C<async> creates a thread to execute the block immediately following
+it. This block is treated as an anonymous sub, and so must have a
+semi-colon after the closing brace. Like C<threads->new>, C<async>
+returns a thread object.
+
=back
=head1 WARNINGS