搜索插件、代码仓与 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 项

源码仓库

使用此插件的项目