Commit Graph

8 Commits

Author SHA1 Message Date
deadprogram 0e25f29a1b core: Refactor events to use channels all the way down. Allows 'metal' development using Gobot libs.
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-09-12 21:33:14 +02:00
Kenny Levinsen 4164003de1 Save ~1000 goroutines
Previous code spawns ~1000 go-routines due to NewEvent. Removing a
goroutine and making the loop of callbacks happen directly in Write with
a lock reduces this to ~12 in my test.
2015-09-30 21:45:54 +02:00
Adrian Zankich 8ea3ae2c8b go lint and documentation tweaks for the gobot package 2014-12-31 05:15:52 -08:00
Adrian Zankich 444d9ffbde Update gobot package docs 2014-11-13 11:06:57 -08:00
Javier Cervantes ad96293edb Adds godoc to api package 2014-10-22 10:04:28 -05:00
Adrian Zankich f6c72529f0 Add channel timeouts 2014-07-15 09:35:19 -07:00
Adrian Zankich 83babbbe87 Add 'Once' Event function 2014-07-15 09:35:19 -07:00
Adrian Zankich db44941c21 Use new Event type for events 2014-06-11 11:37:20 -07:00