How does this diverge from Janus? #2
-
Can you explain why someone might choose this over Janus? And vice-versa? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Benefits:
Drawbacks:
|
Beta Was this translation helpful? Give feedback.
Benefits:
Support for more libraries. Culsans inherits aiologic compatibility and thus supports at least 6 (7 if you count AnyIO) different libraries, which gives at least 36 possible communication directions. Janus supports only two: threading and asyncio.
Support for multiple event loops. Unlike Janus, Culsans does not bind to the current event loop, which allows you to use Culsans independently of event loops: you can use Culsans in any combination to communicate between any event loop at the same time. Janus supports only two models: either only normal threads (since 1.2.0 and Python 3.10), or only one asyncio event loop and an arbitrary number of worker threads.
Support for add…