dart-asynchronous-programming
/dart-asynchronous-programming
Pomaga budować asynchroniczne backendy i aplikacje Dart oraz Flutter z Future, Stream, Completer i izolatami.
- Autor
- nextboxis ↗
- Repozytorium
- library-skill-agents ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 28.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 28.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pomaga budować asynchroniczne backendy i aplikacje Dart oraz Flutter z Future, Stream, Completer i izolatami.
Oryginalny opis (EN)
Use this skill when building asynchronous Dart/Flutter backends and apps using Futures, Streams, Completers, and Isolates.
Jak działa
- When to use
- Prerequisites
- Step-by-step workflow
- Commands / code examples
- Common mistakes & pitfalls
- Verification checklist
- Related skills
Podgląd SKILL.md
---
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
Wersje
W bazie nie ma innych skilli o nazwie dart-asynchronous-programming.
Migawka bazy z 13.11.2026 · wersja paczki 8318f269aa4f (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100dart-async
Pisze i sprawdza asynchroniczny kod w Dart przez async i await, z Future, Stream, timeoutami i izolatami dla ciężkich obliczeń. - 100dart-n-flutter
Prowadzi pisanie kodu Dart i Flutter zgodnie z oficjalnymi zaleceniami dla plików .dart. - 100dart
Pomaga programować w Dart: null safety, async/await i future, streamy, dopasowanie wzorców, rekordy i konstruktory klas, także w aplikacjach Flutter i CLI. - 90dart-concurrency
Projektuje i debuguje asynchroniczną infrastrukturę Dart z Future, Stream, izolatami, anulowaniem i bezpiecznym zarządzaniem cyklem życia, przy wyścigach, nieaktualnych wynikach i wyciekach strumieni. - 95build-agent-dart
Agent budowania dla Dart i Fluttera: aplikacje mobilne, widgety, pakiety Dart i funkcje na iOS oraz Androidzie. - 100dart-expert
Pomaga w Dart i Flutter przy aplikacjach mobilnych i wieloplatformowych, w tym widgetach i frameworku Flutter.