registerManyCallbacks

suspend fun registerManyCallbacks(vararg registrations: CallbackRegistration<out Any>): List<RegistrationResult>

Registers multiple callbacks in a batch. This method allows for the registration of several event listeners at once, which is more efficient than registering each callback individually, because the number of requests can be minimized.

Return

A list of results, in an order matching the input {@code registrations}. Each result contains a {@link Throwable} error if an exception occurred during its corresponding registration.

Parameters

registrations

A list of CallbackRegistration objects. Each object encapsulates the details for a single event listener to be registered, including the event type, the callback to execute, and a callback group identifier.