retoor 8bbce912a0 fix: add asyncio semaphore to BaseMapper and enable run_in_executor for thread safety
The commit introduces a per-instance asyncio.Semaphore(1) in BaseMapper.__init__ and wraps the run_in_executor method with an async with self.semaphore block, replacing the previous synchronous direct call with an actual thread pool execution via loop.run_in_executor. This ensures that concurrent calls to run_in_executor are serialized, preventing race conditions when the mapper interacts with blocking I/O or shared resources, while also restoring the intended asynchronous offloading behavior that was previously commented out.
2025-05-31 22:38:22 +00:00

Snek

Slack like chat application with focus on performance

This is a slack like chat application with focus on performance. Other slack-like applications became too heavy. My RocketChat just had an 'frontend' crash. Just an error from the system itself like it's the most normal thing in the world.

Running

At this point, there's nothing officially running but what you can do:

  • Install the project: make install
  • Run part of the project: ./venv/bin/python -m snek.app
  • Run other part of the project: ./venv/bin/python -m snek.models
S
Description
Chat for snek people made by snek people.
Readme
58 MiB
Languages
Python 51.8%
HTML 28%
JavaScript 15.5%
CSS 4.6%