Skip to content
cccskills
FreePublished on GitHub

timers-and-async

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

The English summary is being prepared. Showing the original description.

See how to install

Files included (3)

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

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

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

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new11Updated Oct 22, 2026

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

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new11Updated Oct 22, 2026

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

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new11Updated Oct 22, 2026

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

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new11Updated Oct 22, 2026

atmos

Free

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

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new11Updated Oct 22, 2026

audio

Free

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

The English summary is being prepared. Showing the original description.

ArcaneSS14/arcane-new11Updated Oct 22, 2026

See all skills by ArcaneSS14

Report a problem with this skill