Skip to content

Conversation

@CodedNil
Copy link
Contributor

@CodedNil CodedNil commented Aug 3, 2023

I am currently working on a project where I need to run server-side code concurrently with Dioxus Fullstack. However, I noticed that there is no way to reuse the Tokio runtime created in the launch function. As a result, the only option available to me right now is to spawn a new thread and runtime, which seems inefficient.

I propose making the launch functions public. This would allow developers like me to copy the launch function's code into our codebases and manipulate the Tokio runtime as needed, such as spawning new functions onto it. This change would provide more flexibility and efficiency in running concurrent server-side code.

@ealmloff ealmloff enabled auto-merge (squash) August 9, 2023 16:23
@ealmloff ealmloff merged commit 92a8669 into DioxusLabs:master Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants