Skip to content

[suggestion] Events listening timeout in Client CLI #2941

@pesterev

Description

@pesterev

Feature request

I'd like to have the ability to listen to events with a given timeout.
I see the function signature in this way:

pub fn listen_for_events(
        &self,
        event_filter: FilterBox,
        timeout: Option<Duration>, // time after which the connection will be closed
) -> Result<impl Iterator<Item = Result<Event>>> {    

Motivation

Currently, the client library doesn't provide a way to listen to events with some specific timeout.

Who can help?

@Erigara @appetrosyan

Metadata

Metadata

Assignees

Labels

EnhancementNew feature or requestiroha2-devThe re-implementation of a BFT hyperledger in RUST

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions