8000 Document socketpool.SocketPool.__init__() · pepijndevos/circuitpython@85f0206 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85f0206

Browse files
author
Alec Delaney
committed
Document socketpool.SocketPool.__init__()
1 parent b1371ce commit 85f0206

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

shared-bindings/socketpool/SocketPool.c

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,20 @@
3838

3939
//| class SocketPool:
4040
//| """A pool of socket resources available for the given radio. Only one
41-
//| SocketPool can be created for each radio.
41+
//| SocketPool can be created for each radio.
4242
//|
43-
//| SocketPool should be used in place of CPython's socket which provides
44-
//| a pool of sockets provided by the underlying OS."""
43+
//| SocketPool should be used in place of CPython's socket which provides
44+
//| a pool of sockets provided by the underlying OS.
45+
//| """
4546
//|
47+
//| def __init__(self, radio: wifi.Radio) -> None:
48+
//| """Create a new SocketPool object for the provided radio
49+
//|
50+
//| :param wifi.Radio radio: The (connected) network hardware to associate
51+
//| with this SocketPool; currently, this will always be the object
52+
//| returned by :py:attr:`wifi.radio`
53+
//| """
54+
//| ...
4655

4756
STATIC mp_obj_t socketpool_socketpool_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
4857
mp_arg_check_num(n_args, n_kw, 1, 1, false);

0 commit comments

Comments
 (0)
0