Documentation of async
authorArtur Bergman <sky@nanisky.com>
Tue, 7 May 2002 21:18:44 +0000 (21:18 +0000)
committerArtur Bergman <sky@nanisky.com>
Tue, 7 May 2002 21:18:44 +0000 (21:18 +0000)
p4raw-id: //depot/perl@16454

ext/threads/threads.pm

index f76d55bbb5198e257fede25b2e0ffb01bb75f6f9..4aba309f0c729f6b61a77e2529b7dfd664240dd5 100755 (executable)
@@ -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-&gt;new>, C<async>
+returns a thread object.
+
 =back
 
 =head1 WARNINGS