dart-asynchronous-programming
/dart-asynchronous-programming
Use this skill when building asynchronous Dart/Flutter backends and apps using Futures, Streams, Completers, and Isolates.
- Author
- nextboxis ↗
- Repository
- library-skill-agents ↗
- Licence
- MIT
- Last repository change
- 28.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use this skill when building asynchronous Dart/Flutter backends and apps using Futures, Streams, Completers, and Isolates.
Original author description
Use this skill when building asynchronous Dart/Flutter backends and apps using Futures, Streams, Completers, and Isolates.
How it works
- When to use
- Prerequisites
- Step-by-step workflow
- Commands / code examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
SKILL.md preview
---
name: dart-asynchronous-programming
description: Use this skill when building asynchronous Dart/Flutter backends and apps using Futures, Streams, Completers, and Isolates.
---
# Dart Asynchronous Concurrency & Streams
## When to use
Use this skill when you need to building asynchronous Dart/Flutter backends and apps using Futures, Streams, Completers, and Isolates.
## Prerequisites
- Working knowledge of relevant programming language or database fundamentals.
- Access to testing environment or local runtime instance.
## Step-by-step workflow
1. **Analyze operational requirements**: Review performance boundaries, data integrity constraints, and query patterns.
2. **Design schema / interface**: Define explicit data contracts, types, or indexes supporting planned operations.
3. **Implement core routines**: Construct declarative, type-safe, or parameterized queries and functions.
4. **Validate performance**: Verify execution metrics using profilers, EXPLAIN plans, or benchmark test suites.
5. **Implement defensive controls**: Enforce timeout boundaries, connection pooling limits, and transaction safety.
## Commands / code examples
```dart
import 'dart:async';
Stream<int> counterStream(int maxCount) async* {
for (int i = 1; i <= maxCount; i++) {
await Future.delayed(const Duration(milliseconds: 100));
yield i;
}
}
Future<void> main() async {
await for (final count in counterStream(5)) {
print('Tick: $count');
}
}
```
## Common mistakes & pitfalls
- Overlooking indexing strategies on foreign keys and frequently queried filter columns.
- Running unparameterized dynamic queries, creating severe SQL injection vulnerabilities.
- Holding open long-running database transactions during slow external network calls.
## Verification checklist
- [ ] Schema contracts and type signatures are strictly enforced.
- [ ] Queries are fully parameterized against injection vulnerabilities.
- [ ] Profiling or execution plans show optimal resource consumption.
- [ ] Error handling safely releases locks and rolls back aborted transactions.
## Related skills
- postgresql-query-optimization-explain
- sql-anti-patterns-remediation
- acid-transactions-isolation-levels
- secure-code-review-static-analysis-sast
Versions
The database has no other skills named dart-asynchronous-programming.
Database snapshot: 13.11.2026 · package version 8318f269aa4f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100dart-async
Asynchronous Dart with async/await only (never Future.then, catchError, whenComplete, onError) — Future, the event loop and microtasks, Future.wait and record .wait, timeouts, cancellation patterns, Stream (single-subscription vs broadcast), StreamController, async*/yield,… - 100dart-n-flutter
Instructions for writing Dart and Flutter code following the official recommendations. Triggers on: **/*.dart - 100dart
Expert Dart programming assistance covering sound null safety, async/await futures, streams, pattern matching, records, and class constructors. Use when writing Dart logic, developing Flutter mobile/web apps, or building Dart CLI applications. - 90dart-concurrency
Design and debug Dart asynchronous infrastructure with Future, Stream, isolates, cancellation, and lifecycle-safe ownership. Use for races, stale results, background CPU work, stream leaks, or async error handling; not for routine form-local validation or submission unless its… - 95build-agent-dart
Dart/Flutter build agent for mobile apps, Flutter widgets, and Dart packages. Extends build-agent with Dart-specific conventions. Use when building Flutter apps, Dart packages, or mobile (iOS/Android) features. - 100dart-expert
Expert-level Dart, Flutter, mobile development, and cross-platform apps. Use when the user mentions Flutter, mobile, cross platform, or widgets, or when the task involves Dart Language or Flutter Framework.