Skip to content

Commit d15be28

Browse files
authored
Does this resolve #1538?
Does simply removing the `if` statement resolve #1538?
1 parent 8574177 commit d15be28

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

doc/Type/IO/Socket/Async.pod6

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@ And a client that connects to it, and prints out what the server answers:
3030
use v6.c;
3131
3232
await IO::Socket::Async.connect('localhost', 3333).then( -> $promise {
33-
if $promise.status {
34-
given $promise.result {
35-
.print('Hello, Perl 6');
36-
react {
37-
whenever .Supply() -> $v {
38-
$v.say;
39-
done;
40-
}
33+
given $promise.result {
34+
.print('Hello, Perl 6');
35+
react {
36+
whenever .Supply() -> $v {
37+
$v.say;
38+
done;
4139
}
42-
.close;
4340
}
41+
.close;
4442
}
4543
});
4644
=end code

0 commit comments

Comments
 (0)