本文へ移動
cccskills
無料GitHub で公開

timers-and-async

Manage timers, cancellation, entity lifetime, asynchronous work, and main-thread state safely.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md1.5 KB
  • agents/openai.yaml226 B
  • references/lifetime-checklist.md326 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Timers and asynchronous work must respect entity lifetime and simulation ownership.

Timers

Use the established game timing and timer APIs. Define who owns cancellation. Before a callback mutates state, re-check that entities and components still exist and that the operation is still relevant.

Do not capture stale component references across delayed callbacks. Avoid creating one timer per entity in hot systems when an update loop or shared scheduler is the established pattern.

Async work

Keep ECS mutation on the correct simulation thread. Background work may perform isolated I/O or computation only when the API explicitly supports it. Marshal results back through the established mechanism and revalidate state before applying them.

Round and map lifecycle

Cancel or invalidate work on round restart, map unload, entity deletion, user disconnect, and component removal when applicable.

Common failures

  • callback runs after entity deletion;
  • duplicate timer starts apply an effect twice;
  • cancellation token is ignored;
  • background thread touches entity state;
  • timer captures an outdated price, permission, or target;
  • repeating timer survives system shutdown.

Verification

Test cancellation, deletion, repeated scheduling, shutdown, disconnect, exception paths, and delayed completion after state changes.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Implement actions, cooldowns, DoAfter flows, interruption, cancellation, and authoritative completion safely.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

Implement privileged commands, admin UI, role checks, audit logs, and safe operational controls.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

Plan, verify, implement, and deliver repository work through evidence-backed ownership and quality gates.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

Implement replicated appearance data, GenericVisualizer mappings, sprite layers, overlays, and client visual systems.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

atmos

無料

Modify atmos simulation, gases, fire, pressure, pipes, devices, UI, and hot paths safely.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

audio

無料

Add data-driven audio with correct prediction, audience, resources, attribution, and verification.

日本語の概要は準備中です。原文の説明を表示しています。

ArcaneSS14/arcane-new32026年10月13日 更新

ArcaneSS14 のスキルをすべて見る

このスキルの問題を報告する