Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viesti/event-channels
FRP -like tests with core.async
https://github.com/viesti/event-channels
Last synced: about 2 months ago
JSON representation
FRP -like tests with core.async
- Host: GitHub
- URL: https://github.com/viesti/event-channels
- Owner: viesti
- Created: 2013-07-20T06:55:55.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-21T13:29:01.000Z (about 11 years ago)
- Last Synced: 2023-03-23T02:06:23.672Z (almost 2 years ago)
- Language: JavaScript
- Size: 309 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Event handling with core.async
# JavaFX #
Initially had an idea to pipe mouse press and move events to separate
channels and combine them with alts!. Since JavaFX allows to observe
events in a single callback (as opposed to many in Swing) the idea
slightly watered down to a local event loop. Neat trial anyway.# JavaScript #
JavaScript seems to have separate callbacks (like Swing) and unlike
JavaFX, there is more gain in combining those event sources to a
channel and then handling events by type in a go block that drains
events.# Running #
Both implementations currently let you draw a single never-ending
polyline. Not very usefull. The only excuse I can say is that I had
fun in looking into core.async :)### Clojure/JavaFX ###
lein start
### ClojureScript ###
Open `public/index.html` in a browser.
## License
Copyright © 2013 FIXME
Distributed under the Eclipse Public License, the same as Clojure.