File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ start a custom background task::
277277 # do some background work here!
278278 pass
279279
280- sio.start_background_task(my_background_task, 123)
280+ task = sio.start_background_task(my_background_task, 123)
281281
282282The arguments passed to this method are the background function and any
283283positional or keyword arguments to invoke the function with.
@@ -288,7 +288,7 @@ Here is the ``asyncio`` version::
288288 # do some background work here!
289289 pass
290290
291- sio.start_background_task(my_background_task, 123)
291+ task = sio.start_background_task(my_background_task, 123)
292292
293293Note that this function is not a coroutine, since it does not wait for the
294294background function to end. The background function must be a coroutine.
You can’t perform that action at this time.
0 commit comments