Skip to main content

Module block_listener

Module block_listener 

Source
Expand description

A task that listens for new blocks

Re-exportsยง

use crate::shutdown::Shutdown; ๐Ÿ”’
use futures::FutureExt; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::StreamExt; ๐Ÿ”’
use std::pin::Pin; ๐Ÿ”’
use std::task::Context; ๐Ÿ”’
use std::task::Poll; ๐Ÿ”’

Structsยง

BlockListener
A future that executes a given task for the latest block available on the stream.