next

abstract suspend fun next(id: String): Result<RandomnessBeacon>

Waits for and returns the next randomness beacon (long polling).

This is a long-polling endpoint that blocks until the next beacon is produced. Useful for real-time applications that need beacons as soon as they're available.

Return

Result containing the next RandomnessBeacon when available, or DrandError on failure

Parameters

id

The beacon identifier (e.g., "default", "quicknet")