Add support for async.
[p5sagit/p5-mst-13.2.git] / ext / threads / threads.pm
index a8a340f..f76d55b 100755 (executable)
@@ -50,7 +50,7 @@ our %EXPORT_TAGS = ( all => [qw()]);
 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
 
 our @EXPORT = qw(
-       
+async  
 );
 our $VERSION = '0.99';
 
@@ -60,6 +60,11 @@ sub equal {
     return 0;
 }
 
+sub async (&;@) {
+    my $cref = shift;
+    return threads->new($cref,@_);
+}
+
 $threads::threads = 1;
 
 bootstrap threads $VERSION;