Skip to content

Instantly share code, notes, and snippets.

View serializingme's full-sized avatar

Duarte Silva serializingme

View GitHub Profile
@serializingme
serializingme / obs-asyncio-example.py
Last active April 28, 2023 14:39
Asyncio Leveraging OBS Python Script
"""Simple example how to make use of asyncio in OBS Python scripts."""
from typing import Optional
import threading
import asyncio
_LOOP: Optional[asyncio.AbstractEventLoop] = None
_THREAD: Optional[threading.Thread] = None