(sigil async scheduler)

Shared Async Scheduler State

This module provides the shared state for async context detection. Both (sigil async) and (sigil io) import this to coordinate async behavior without circular dependencies.

Users typically don't need to import this directly - use (sigil async) for the full async runtime.

Exports

schedulerprocedure

Scheduler record type.

The scheduler manages concurrent tasks with support for I/O and timer-based waiting.

scheduler?procedure

Test if a value is a scheduler struct.

Get the run-queue field of a scheduler struct.

Get the blocked-count field of a scheduler struct.

Get the task-count field of a scheduler struct.

Get the io-waiters field of a scheduler struct.

Get the fd-waiters field of a scheduler struct.

Get the timer-waiters field of a scheduler struct.

Get the external-waiters field of a scheduler struct.

Set the run-queue field of a scheduler struct.

Set the blocked-count field of a scheduler struct.

Set the task-count field of a scheduler struct.

Set the io-waiters field of a scheduler struct.

Set the fd-waiters field of a scheduler struct.

Set the timer-waiters field of a scheduler struct.

Set the external-waiters field of a scheduler struct.

Get the current async scheduler.

Returns the scheduler if running inside with-async, #f otherwise.

Set the current async scheduler.

Called by the async runtime when entering/exiting async context.

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)

(No description)