OhMySkills
语言与基础运行时 kotlin-coroutines 更新于 2026-09-25

Kotlin 工程规则

Kotlin coroutine rules: structured concurrency and cancellation-safe scopes

技术栈
Kotlin
主题
工程基线
条目
9 条
版本
v0.2.0

✓ 应当这么做

  • ✓ Write the idiom that the language library authors themselves would write
  • ✓ Keep public APIs documented at the point of declaration
  • ✓ Cover the error paths with tests, not only the happy path

✕ 常见反模式

  • ✕ Porting patterns from another language that fight the runtime
  • ✕ Global mutable state used as an implicit dependency channel
  • ✕ Silent fallbacks that hide configuration mistakes

◎ 交付前验证

  • ◎ Compiler/interpreter warnings treated as errors for new code
  • ◎ Test suite passes on the minimum supported language version
  • ◎ Public API diff reviewed for accidental surface growth

同分类条目

32 篇

同一技术栈的其他条目