Function sc_offchain::notification_future[][src]

pub async fn notification_future<Client, Storage, Block, Spawner>(
    is_validator: bool,
    client: Arc<Client>,
    offchain: Arc<OffchainWorkers<Client, Storage, Block>>,
    spawner: Spawner,
    network_provider: Arc<dyn NetworkProvider + Send + Sync>
) where
    Block: Block,
    Client: ProvideRuntimeApi<Block> + BlockchainEvents<Block> + Send + Sync + 'static,
    Client::Api: OffchainWorkerApi<Block>,
    Storage: OffchainStorage + 'static,
    Spawner: SpawnNamed

Inform the offchain worker about new imported blocks