Fix FAQ to showcase that there is a single parameter, the error.
This commit is contained in:
parent
5e6491c3fe
commit
a18267ca49
@ -189,7 +189,7 @@ a coroutine from another thread.
|
||||
However, this function returns a ``concurrent.Future`` and to actually call it we have to fetch its result. Putting all of
|
||||
this together we can do the following: ::
|
||||
|
||||
def my_after():
|
||||
def my_after(error):
|
||||
coro = some_channel.send('Song is done!')
|
||||
fut = asyncio.run_coroutine_threadsafe(coro, client.loop)
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user