Rafał Krzyważnia
54dbe6d074
Use RwLock::read in SyncStorage ( #2463 )
...
Replaces `RwLock::try_read` with `RwLock::read` in `SyncStorage`. This change prioritizes potential deadlocks over panics, as unwrapping a failed `try_read` is deemed less desirable.
2024-05-30 07:05:20 -05:00
Evan Almloff
47c87568e1
Fix event handler memory leak ( #2298 )
...
* fix event handler memory leak and double drops
* Prevent double dropping generational boxes
* recycle instead of dropping
2024-04-26 00:47:22 -04:00
Evan Almloff
9f283f571f
fix signal error message and add tests ( #2118 )
2024-03-20 08:45:27 -07:00
Evan Almloff
f51b5617e1
add a test for the memo hook
2024-03-11 15:33:46 -05:00
Evan Almloff
4bc2f4a713
add more docs around lifetime downcasting
2024-03-08 10:46:34 -06:00
Evan Almloff
60a84956d1
restore lifetime checking for signals
2024-03-08 10:32:57 -06:00
Evan Almloff
1af8f56e89
make target an associated type
2024-02-07 08:53:21 -06:00
Evan Almloff
50e3216d8b
convert T into signals automatically
2024-01-29 13:36:39 -06:00
Evan Almloff
51d7133ca5
add readable and writable traits for signal-like structs
2024-01-23 10:05:59 -06:00
Evan Almloff
6ed5df644e
fix generational box release builds
2024-01-23 07:38:29 -06:00
Jonathan Kelley
079fec3be6
simplify generational box by compressing debug info
2024-01-22 21:17:02 -08:00
Evan Almloff
e01f10e25d
remove mappable and mappablemut traits
2024-01-22 16:51:25 -06:00
Evan Almloff
a10f9496c7
don't panic in try variants even in release mode
2024-01-22 08:32:13 -06:00
Jonathan Kelley
028f499bf6
Fix generational box in release mode
2024-01-21 12:46:19 -08:00
Evan Almloff
b7c9817cf3
fix tests
2024-01-02 15:19:01 -06:00
Evan Almloff
6b17d3db1e
fix signals crate
2023-12-15 18:35:48 -06:00
Evan Almloff
9e388c3c51
refactor generational box into multiple files
2023-12-15 08:50:54 -06:00