搜尋套件、儲存庫與 APP 分類

套件詳情v2.13.1

async

與 'dart:async' 庫相關的實用函數和類。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1570萬
喜歡數
637
Pub 分數
150

安裝套件

flutter pub add async

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

async 套件提供擴充 Dart 內建 'dart:async' 庫的實用函數與類別,透過額外的工具來處理 futures、streams 與並發性,以增強非同步程式設計。它提供如 async/await 幫手、stream 組合器及改進的錯誤處理等便利功能,讓複雜的非同步工作流程更易管理且更具可讀性。由 dart.dev 設計,此套件能與 Flutter 和 Dart 應用程式在所有主要平台中無縫整合。

適用情境

  • 處理複雜的非同步工作流程
  • 簡化流轉換
  • 改進非同步程式碼中的錯誤處理
  • 使用流構建響應式 UI
  • 管理併發操作
  • 增強非同步邏輯的可測試性

主要特色

  • 擴展的串流與未來工具
  • 用於異步操作的便利方法
  • 改進的錯誤傳播
  • 跨平台相容性
  • 輕量且無依賴
  • 補充核心 Dart 異步功能

適合對象

  • 處理複雜異步邏輯的開發者
  • 需要強大串流管理功能的Flutter應用
  • 重視乾淨、可維護的異步程式碼的團隊
  • 學習非同步模式的教育專案
  • 針對多個平台的專案

使用建議

  • 需要帶有異步支援的 Dart SDK
  • 可能在較新版本的 Dart 中重複功能
  • 最佳搭配核心 Dart 庫使用
  • 基本異步操作不需要
  • 僅限與異步相關的增強功能
  • 無執行時效能開銷

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Overview

This repository is home to various Dart packages under the dart.dev publisher.

Packages

Package Description Issues Version
args Library for defining parsers for parsing raw command-line arguments into a set of options and values using GNU and POSIX style options. issues pub package
async Utility functions and classes related to the 'dart:async' library. issues pub package
characters String replacement with operations that are Unicode/grapheme cluster aware. issues pub package
collection Collections and utilities functions and classes related to collections. issues pub package
convert Utilities for converting between data representations. Provides a number of Sink, Codec, Decoder, and Encoder types. issues pub package
crypto Implementations of SHA, MD5, and HMAC cryptographic functions. issues pub package
fixnum Library for 32- and 64-bit signed fixed-width integers with consistent behavior between native and JS runtimes. issues pub package
lints Official Dart lint rules. Defines the 'core' and 'recommended' set of lints suggested by the Dart team. issues pub package
logging Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. issues pub package
os_detect Platform independent OS detection. issues pub package
path A string-based path manipulation library. issues pub package
platform A pluggable, mockable platform information abstraction for Dart. issues pub package
typed_data Utility functions and classes related to the dart:typed_data library. issues pub package

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

For additional information about contributing, see our contributing page.

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案