Skip to content

Commit 5dd496a

Browse files
committed
Note that socket.bind returns the created coroutine
1 parent 263a0a9 commit 5dd496a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Runtime Environment/Socket.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ A convenience function that wraps `socket.listen`, automatically accepting new c
2727
1. A [scheduler](Scheduler) instance.
2828
2. Either an int with the port to listen on or a string such as `1.2.3.4:567` for systems with multiple public-facing addresses.
2929
3. The callback function that will be called in a new coroutine for each client socket.
30+
#### Returns
31+
The coroutine that was created and added to the scheduler.
3032
#### Errors
3133
Raises an error to the caller if the port could not be bound.
3234

0 commit comments

Comments
 (0)