Skip to content

carloslfu/tauri-deno-example

Repository files navigation

Run Deno tasks with Tauri

Screenshot

This is an example of using Tauri and deno_runtime to run multiple Deno tasks in parallel. This repo showcases parallel code execution, stopping tasks, handling permissions, and getting results.

It uses channels to stop tasks and hashmaps to store the return values and thread handles of the tasks. The Tauri <> Rust communication is done through Tauri events and commands.

If there are pending permission requests it could block other tasks that need permissions due to a deno_runtime limitation. See issue #1 and this Deno issue for more details.

Run it with:

pnpm tauri dev

About

Run multiple Deno tasks safely using Tauri.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published