About the Questions and Help category

Have a question about how to do something with Sanic?

Are you having a problem and stuck?

Ask all of your Sanic related questions here. Please provide us with as much code snippets as possible to help diagnose or answer your questions.

I tried to run the following code and got the “RuntimeError: This event loop is already running” error.
Does Sanic Framework uses an event loop, Does it has the option to disable the event loop or to use a specific event loop provided by the user?

if __name__ == '__main__':
    # Connect to IB
    app.ctx.ib=IB()
    app.ctx.ib.connect('127.0.0.1', 7497,1)
    app.run(port=5000)