Teekeks / pyTwitchAPI

A Python 3.7 compatible implementation of the Twitch API, EventSub, PubSub and Chat
https://pytwitchapi.dev
MIT License
254 stars 38 forks source link

Add option to set in which asyncio event loop to execute callbacks #232

Closed Teekeks closed 1 year ago

Teekeks commented 1 year ago

Currently, all callbacks run in the event loop of Chat, PubSub and/or EventSub which is usually fine but sometimes leads to problems.

Adding an option to specify a loop in which to run the callbacks for events and commands in fixes this problem for those use cases.

Teekeks commented 1 year ago

done in 720c98aca8505ed454428b0c2e41e73c306b3931