Skip to main content

create_watcher

Function create_watcher 

Source
pub fn create_watcher<K, T>(
    api: Api<K>,
    writer: Writer<K>,
    reload_tx: Sender<()>,
    controller_id: ControllerId,
    ctx: Arc<Context<T>>,
) -> BoxFuture<'static, ()>
where K: Resource + Lookup + Clone + DeserializeOwned + Send + Sync + Debug + 'static, <K as Lookup>::DynamicType: Default + Eq + Hash + Clone + Send + Sync, <K as Resource>::DynamicType: Default + Eq + Hash + Clone, T: Resource<DynamicType = ()> + ResourceExt + Lookup + Clone + 'static, <T as Lookup>::DynamicType: Eq + Hash + Clone + Send + Sync,