An open API service indexing awesome lists of open source software.

https://github.com/carloslfu/tauri-deno-example

Run multiple Deno tasks safely using Tauri.
https://github.com/carloslfu/tauri-deno-example

deno denoland rust tauri

Last synced: 4 months ago
JSON representation

Run multiple Deno tasks safely using Tauri.

Awesome Lists containing this project

README

        

# Run Deno tasks with Tauri

![Screenshot](screenshot.png)

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](https://github.com/carloslfu/tauri-deno-example/issues/1) and [this Deno issue](https://github.com/denoland/deno/issues/27160) for more details.

Run it with:

```bash
pnpm tauri dev
```