Skip to main content

discard_external_properties

Function discard_external_properties 

Source
pub fn discard_external_properties()
Expand description

Empties the cross-thread typed-property channel, throwing away whatever it holds.

The bus is one channel per process, so a second app built in the same process inherits every write the first one left queued. A caller that runs several apps in sequence (a build rendering one page after another, a server rendering one request after another) calls this between them so each app starts from its own state. Pair it with crate::signals::discard_external_signals, which empties the array half.