Skip to content

Expose AsyncResult type alias #3824

Open
@tnull

Description

@tnull

In #3734 and #3752 we started converting some of our traits to return an AsyncResult.

However, as async_poll.rs is not exposed, the docs now show the full Result type, which is a mouth full, e.g.:

 fn list_confirmed_utxos<'a>(
        &'a self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>, ()>> + Send + 'a>>;

IMO we should expose (and document) the AsyncResult type alias, to allow users to use AsyncResult in their trait implementations, and to have docs read better.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions