Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 766 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 766 Bytes

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