You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change WebStorage to take in &Paths instead of &strs.
resources_type_state module should be resources::ts.
Provide types that will be inserted into Resources, instead of having a W<'op, Option<T>> and R<'op, Option<T>>
This requires &mut Resources, and while the graph is processing, we only have access to &Resources.
Rough idea:
use resman::Resource;/// Something included inside a `Data` implementation.#[derive(Debug)]pubstructInsert<T>{tx:Sender<Box<dynResource>>,}impl<'borrow,T>Data<'borrow>forInsert<'borrow,T>whereT:Debug + Send + Sync + 'static,{fnborrow(_resources:&'borrow Resources) -> Self{// no-op, as the ItemSpec will instantiate T.}}// T must be set before `Insert` is dropped?impl<'borrow,T>DropforInsert<'borrow,T>whereT:Debug + Send + Sync + 'static,{fndrop() -> Self{self.tx.send(t);}}// Somewhere else in the framework.// This still can't be inserted during a graph iteration.let r = rx.receive().await;
resources.insert(t);
The text was updated successfully, but these errors were encountered:
WebStorage
to take in&Path
s instead of&str
s.resources_type_state
module should beresources::ts
.Provide types that will be inserted intoResources
, instead of having aW<'op, Option<T>>
andR<'op, Option<T>>
This requires
&mut Resources
, and while the graph is processing, we only have access to&Resources
.Rough idea:
The text was updated successfully, but these errors were encountered: