188 Commits

Author SHA1 Message Date
c3c2d3ee4e
Effect stack now uses #[thread_local]. 2024-03-06 16:30:31 +00:00
7eafc46990
Added some benchmarks to effects. 2024-03-06 16:29:38 +00:00
68c971ee15
Removed memory leak in effect tests. 2024-03-06 16:26:29 +00:00
c9e75a148e
dynatos_context::Handle is now !Send + !Sync due to the thread-local nature of context. 2024-03-05 19:46:51 +00:00
5adc1a41a7
Option<T> can now be ?d in a function that returns Loadable<T, E>. 2024-03-05 19:18:56 +00:00
354e5db27c
Fixed redundant imports. 2024-03-05 19:18:29 +00:00
f8339133a3
Removed LazyLoadable. 2024-03-05 18:59:48 +00:00
598fb44f8b
Added AsyncSignal::with_inner. 2024-03-05 18:47:45 +00:00
2b2f04a5ce
AsyncSignal now implements SignalUpdate. 2024-03-05 18:39:39 +00:00
18cc9b0eae
Added AsyncSignal. 2024-03-05 16:56:41 +00:00
0e175d4ddb
Fixed anchor not being able to use absolute locations. 2024-03-05 16:29:34 +00:00
56f128602b
Added WeakTrigger. 2024-03-05 15:31:12 +00:00
0880635e49
Renamed methods of SignalSetWith to avoid overloading existing terms. 2024-03-05 15:13:59 +00:00
fafb26aaff
Renamed methods of SignalGetCopy and SignalGetClone to avoid overloading existing terms. 2024-03-05 14:58:06 +00:00
430d7dea10
Moved all signal operators to their own module. 2024-03-05 14:57:06 +00:00
e87bf87157
SignalUpdate now uses GATs for it's Value type. 2024-03-05 14:53:22 +00:00
d020122ba1
SignalSet now supports a trait for adding types that may be set via SignalSetWith. 2024-03-05 14:41:32 +00:00
7c1ab7ee0c
SignalSet now has a default implementation. 2024-03-04 21:06:22 +00:00
45f133c4ea
Loadable now implements SignalGetClone. 2024-03-04 20:57:18 +00:00
e3c425afff
SignalGetCloned now supports a trait for adding types that may be cloned via SignalGetClone. 2024-03-04 20:57:15 +00:00
579df3eaa8
Loadable now implements SignalGetCopy. 2024-03-04 20:55:05 +00:00
074935e425
Renamed SignalGetInner to SignalGetCopy and made it public. 2024-03-04 20:54:55 +00:00
3b3118caa0
LazyLoadable now uses Loadable<&T, E> for it's SignalWith impl. 2024-03-04 20:52:37 +00:00
c85e9677ef
QueryArraySignal now uses &[T] for it's SignalWith impl. 2024-03-04 20:49:15 +00:00
f0673409a1
QuerySignal now uses Option<&T> for it's SignalWith impl.
`WithDefault` now only supports signals that output `Option<&T>`.
2024-03-04 20:47:58 +00:00
284bcc2f48
SignalGet can now be used on Option<&T> to get an Option<T>. 2024-03-04 20:47:08 +00:00
909f09f09b
SignalWith now uses GATs for it's Value type. 2024-03-04 20:25:55 +00:00
f9e6a24489
Replaced SignalGet and SignalGetCloned with proper traits. 2024-03-04 19:46:22 +00:00
1952dc01d4
Added dynatos_util::SegVec. 2024-03-04 19:25:45 +00:00
1e6d420a8c
Added some benchmarks to Signal. 2024-03-04 17:53:45 +00:00
17fa2d31e8
Added some benchmarks to Trigger. 2024-03-04 17:36:11 +00:00
ca7d175311
Moved RefCell of Trigger into Inner. 2024-03-04 01:29:55 +00:00
412f22d3a6
dynatos_context::CTXS_STACK now uses #[thread_local].
This provides about a 2x improvement on the synthetic benchmarks.
However, even the best case scenario is still ~3x slower than a static access.
2024-02-29 00:51:52 +00:00
8e1a5e8cea
Added some benchmarks to dynatos-context. 2024-02-29 00:48:00 +00:00
161140872d
Improved signal impls in dynatos. 2024-02-28 18:22:24 +00:00
8b44ae1ec5
Derived now has a type parameter for the effect function. 2024-02-28 17:19:19 +00:00
53f2a26b64
Added Effect::inner_fn. 2024-02-28 17:18:28 +00:00
1d2207da5e
ObjectAttachEffect now supports effects with any type parameter. 2024-02-28 16:50:55 +00:00
26a07dde6d
IntoSubscriber is now implemented for all effects and weak effects. 2024-02-27 18:49:29 +00:00
b700a1b93a
Moved dynatos_reactive::IntoSubscriber to crate root. 2024-02-27 18:44:08 +00:00
e104af7e9a
Effect and WeakEffect now carry a generic type for the function. 2024-02-27 18:42:37 +00:00
a76c785063
Renamed effect ignore to suppressed. 2024-02-27 18:37:52 +00:00
857f8687b4
Moved Effect::running to a free function. 2024-02-27 13:11:01 +00:00
7b4ced1a42
Reworked how effect ignoring works for effect::Inner. 2024-02-27 11:50:14 +00:00
12b88120ef
Added some documentation to dynatos_reactive::Derived. 2024-02-27 11:40:00 +00:00
476ab89783
Fixed another broken documentation link. 2024-02-27 11:35:04 +00:00
81f40c2ee1
Removed dynatos links on documentation. 2024-02-27 11:34:22 +00:00
68f181b7b3
Added QueryArraySignal. 2024-02-26 14:35:20 +00:00
74db0eac92
Added missing Debug impl for QuerySignal and WithDefault. 2024-02-26 14:12:55 +00:00
62670dbbf7
Added IteratorLoadableExt::scan_loaded. 2024-02-23 14:36:39 +00:00