Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ineiti/sync-channel
Test directory for failing channel in rust-wasm
https://github.com/ineiti/sync-channel
Last synced: 2 days ago
JSON representation
Test directory for failing channel in rust-wasm
- Host: GitHub
- URL: https://github.com/ineiti/sync-channel
- Owner: ineiti
- License: apache-2.0
- Created: 2020-12-28T12:28:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-28T12:38:58.000Z (almost 4 years ago)
- Last Synced: 2024-11-03T08:23:47.835Z (about 2 months ago)
- Language: Rust
- Size: 58.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
Awesome Lists containing this project
README
# Sync-channel Error
This repo is to show how the sync-channel cannot wait for a value to be sent through.
To test, do the following:
```
wasm-pack build
cd www
npm i
npm run start
```Then open http://localhost:8080, open the javascript console, and you'll see:
```
sync_channel_bg.js:215 panicked at 'condvar wait not supported', library/std/src/sys/wasm/../unsupported/condvar.rs:21:9
[...]
sync_channel_bg.js:215 panicked at 'cannot recursively acquire mutex', library/std/src/sys/wasm/../unsupported/mutex.rs:22:9
[...]
```