Draft experimental hotpatching support 🎉
Thanks to `subsecond` by the Dioxus folks!
This commit is contained in:
parent
5ca5000cdc
commit
10bbe44c30
10 changed files with 212 additions and 35 deletions
|
|
@ -77,7 +77,7 @@ impl<T: 'static> Proxy<T> {
|
|||
///
|
||||
/// Note: This skips the backpressure mechanism with an unbounded
|
||||
/// channel. Use sparingly!
|
||||
pub fn send(&mut self, value: T)
|
||||
pub fn send(&self, value: T)
|
||||
where
|
||||
T: std::fmt::Debug,
|
||||
{
|
||||
|
|
@ -88,13 +88,11 @@ impl<T: 'static> Proxy<T> {
|
|||
///
|
||||
/// Note: This skips the backpressure mechanism with an unbounded
|
||||
/// channel. Use sparingly!
|
||||
pub fn send_action(&mut self, action: Action<T>)
|
||||
pub fn send_action(&self, action: Action<T>)
|
||||
where
|
||||
T: std::fmt::Debug,
|
||||
{
|
||||
self.raw
|
||||
.send_event(action)
|
||||
.expect("Send message to event loop");
|
||||
let _ = self.raw.send_event(action);
|
||||
}
|
||||
|
||||
/// Frees an amount of slots for additional messages to be queued in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue