Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added docs for Thread.Str
  • Loading branch information
Jan-Olof Hendig committed Jun 29, 2016
1 parent 5f1061c commit 081c910
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/Type/Thread.pod
Expand Up @@ -118,4 +118,14 @@ was specified.
say $t1.name; # <anon>
say $t2.name; # my thread
=head2 method Str
method Str(Thread:D:) returns Str:D
Returns a string which contains the invocants L<thread id|#method_id> and
L<name|#method_name>.
my $t = Thread.new(code => { for 1..5 -> $v { say $v }}, name => 'calc thread');
say $t.Str; # Thread<3>(calc thread)
=end pod

0 comments on commit 081c910

Please sign in to comment.