Skip to content

added start_on_thread and send_message_on#60

Merged
ElFantasma merged 4 commits intomainfrom
start_on_thread
Oct 17, 2025
Merged

added start_on_thread and send_message_on#60
ElFantasma merged 4 commits intomainfrom
start_on_thread

Conversation

@ElFantasma
Copy link
Collaborator

  • Added start_on_thread to make a GenServer to be started in it's own dedicated thread. (different from spawn_blocking that uses tokio blocking thread pool)
  • Added send_message_on to spawn a task on a future and send a message to a GenServer when the future completes. Useful to let the GenServer know when ctrl_c signal is thrown.

@ElFantasma ElFantasma merged commit 2ffdc80 into main Oct 17, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants