Expose `AsyncResult` type alias

Đang mở
#3,824 2 bình luận 1 reaction 1 người được giao Xem trên GitHub

@joostjager đang làm issue này rồi.

Từ ngày 3/6/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
Rust
Star
1.4k
Fork
482
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của lightningdevkit/rust-lightning

Tất cả issue của lightningdevkit/rust-lightning

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.