Skip to Content
ReferenceThread and Task Safety

Thread and Task Safety

Unlike the first-party clients from many providers, which don’t synchronize websockets properly across threads and tasks, the OpenPixels Python client is both:

  • Thread-safe: Can be safely used across multiple threads without race conditions or data corruption
  • Task-safe (async-safe): Can handle concurrent asynchronous operations reliably

This means you can make parallel requests from multiple threads or async contexts without correctness issues or performance bottlenecks.