586 Commits

Author SHA1 Message Date
Dan Holmsand
572e4bbf96 Merge branch 'betterdemo' 2015-09-24 10:59:55 +02:00
Dan Holmsand
cfcf356743 Add track, track!, dispose! and with-let to core 2015-09-24 10:19:30 +02:00
Dan Holmsand
034ffa6b7f More tests for with-let 2015-09-24 09:23:21 +02:00
Dan Holmsand
28d454ece9 Include size of cached reactions in tests 2015-09-24 07:48:03 +02:00
Dan Holmsand
d476222abb Optimize track! and with-let a bit 2015-09-23 20:14:29 +02:00
Dan Holmsand
e1585f6730 Add more with-let tests, and fix dispose bug 2015-09-23 19:40:19 +02:00
Dan Holmsand
9163695832 Start adding more tests for with-let 2015-09-23 17:02:48 +02:00
Dan Holmsand
119fbfe173 Add a couple of more tests for with-let 2015-09-23 15:55:57 +02:00
Dan Holmsand
51163c1d07 Rename to with-let, add basic test 2015-09-23 10:39:49 +02:00
Dan Holmsand
a73761e72e Warn if the same with-kept is used more than once 2015-09-21 10:49:43 +02:00
Dan Holmsand
6c9f71e511 Rename testmonitor 2015-09-19 19:03:29 +02:00
Dan Holmsand
ca5ce00c34 Rename monitor -> track, and monitor! -> track! 2015-09-19 16:49:13 +02:00
Dan Holmsand
ea7cd26cf5 Rename with-resource to with-kept and clean up 2015-09-19 16:36:49 +02:00
Dan Holmsand
0b553ef6bd Reorg with-resource 2015-09-19 09:14:14 +02:00
Dan Holmsand
37703c2834 Make with-resource use a proper key 2015-09-19 08:46:26 +02:00
Dan Holmsand
6f448f296f on-dispose should always be called in Reaction 2015-09-18 17:59:40 +02:00
Dan Holmsand
897b766624 Experiment with with-resource 2015-09-18 14:23:50 +02:00
Dan Holmsand
a5d99b8fcd Simplify syntax highlighting a bit
but not as much as I had hoped...
2015-09-17 15:10:27 +02:00
Dan Holmsand
2558cd6708 A little cleanup 2015-09-16 17:55:45 +02:00
Dan Holmsand
54ca0f927f Make monitor! run immediately
and async reaction not schedule anything from start
2015-09-15 18:11:36 +02:00
Dan Holmsand
38250c763b Cleanup config handling 2015-09-15 13:36:02 +02:00
Dan Holmsand
ea75be2952 Go back to not using secretary 2015-09-15 12:27:07 +02:00
Dan Holmsand
a8c86f4f1f Simplify history handling 2015-09-15 11:57:12 +02:00
Dan Holmsand
ce1486a7cd Make sure on-set is valid before allowing change of Reaction 2015-09-14 21:11:33 +02:00
Dan Holmsand
87758ae396 Extend test for rswap! 2015-09-14 19:39:44 +02:00
Dan Holmsand
e11c881aa7 Add rswap!
Works just like swap!, except that it allows recursive swaps on
the same atom, and it always returns nil.
2015-09-14 19:35:48 +02:00
Dan Holmsand
8e7624ea45 Add a test for monitor! 2015-09-14 18:14:13 +02:00
Dan Holmsand
9e9cf93016 Simmplify new cursor a bit 2015-09-14 18:02:13 +02:00
Dan Holmsand
fdef5e6c9f Make cursor used cached reactions 2015-09-14 15:03:39 +02:00
Dan Holmsand
653e4c15f9 Prepare cursor for cached reaction 2015-09-14 14:47:38 +02:00
Dan Holmsand
3acfa689d9 Start to rework cursor 2015-09-14 14:03:32 +02:00
Dan Holmsand
d362e0a26c Mix calling style a bit in tests 2015-09-14 13:34:54 +02:00
Dan Holmsand
995e110946 Setting dirty on on-set is not necessary any more 2015-09-14 13:34:17 +02:00
Dan Holmsand
e05c74e6a5 More tests for monitor 2015-09-14 09:09:04 +02:00
Dan Holmsand
b0d86598ce Start to add tests for monitor 2015-09-13 20:31:31 +02:00
Dan Holmsand
aaf1d56edb More work on monitor 2015-09-13 19:01:58 +02:00
Dan Holmsand
ee72c60d3a Start implementing monitor 2015-09-13 18:17:38 +02:00
Dan Holmsand
e12716da5d Log caught errors instead of rethrowing 2015-09-13 14:30:19 +02:00
Dan Holmsand
04daf6ac57 Exceptions from reactions are now thrown on deref only 2015-09-13 11:00:46 +02:00
Dan Holmsand
b036cf938e Complete async testing 2015-09-12 19:13:31 +02:00
Dan Holmsand
544a3339d0 Start testing async reaction 2015-09-12 18:34:10 +02:00
Dan Holmsand
bc711c4228 Add async reaction 2015-09-12 18:31:20 +02:00
Dan Holmsand
f18d4a7656 Get rid of norun 2015-09-12 09:37:15 +02:00
Dan Holmsand
bb1fa312d6 Use = in deref as well, for consistency 2015-09-11 22:13:36 +02:00
Dan Holmsand
b0395b5461 Make reaction notify only when it actually changes 2015-09-11 20:37:23 +02:00
Dan Holmsand
2895c9bed7 A little cleanup 2015-09-11 18:23:18 +02:00
Dan Holmsand
c689d01452 New snapshot 2015-09-11 16:34:46 +02:00
Dan Holmsand
abcf6cb9e1 Version 0.5.1 v0.5.1 2015-09-11 16:31:20 +02:00
Dan Holmsand
b1acdea090 Use lazy reactions in components 2015-09-11 15:06:42 +02:00
Dan Holmsand
679136f5d5 Make constants const 2015-09-11 12:35:06 +02:00