Timeline for Observer pattern in Rust
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 22, 2021 at 10:21 | history | edited | JiaHao Xu | CC BY-SA 4.0 |
added 219 characters in body
|
Jul 22, 2021 at 10:15 | comment | added | JiaHao Xu |
@LukeSkywalker The RwLock I used in Observed can be easily removed if it is used inside a single-thread program.
|
|
Jul 22, 2021 at 10:14 | comment | added | JiaHao Xu |
@LukeSkywalker If you are using an event loop, then you can definitly use my implementation, as it supports async wakeup upon update to the value.
|
|
Jul 22, 2021 at 7:03 | comment | added | Luke Skywalker | Thanks for your review! It's an interesting implementation. However my use case is not multi-threaded but associated to an event loop and the additional complexity and, probably, execution cost are not worth it. | |
Jul 22, 2021 at 6:16 | history | edited | JiaHao Xu | CC BY-SA 4.0 |
Fix atomically updating epoch
|
Jul 22, 2021 at 5:43 | history | edited | JiaHao Xu | CC BY-SA 4.0 |
Provide more info on the impl and potential improvement
|
Jul 22, 2021 at 5:33 | history | answered | JiaHao Xu | CC BY-SA 4.0 |