Module agora.utils.Utility

Utility functions that cannot be put anywhere else

Functions

NameDescription
retry(waiter, max_retries, duration, error_msg) Retry executing a given delegate at most X times and wait between the retries. As soon as the delegate is executed successfully, the function immediately returns.
retryFor(check, timeout, msg, file, line) Retry the 'check' condition until it is true, or the timeout expires.
snakeCaseToUpperCamelCase(original) Converts a string with underscore separator to upper camel case, for example converts "this_is_me" to "ThisIsMe"

Classes

NameDescription
RawStringSerializer Utility class to implement vibe.d ResultSerializer.serialize and ResultSerializer.deserialize templates

Structs

NameDescription
ThreadWaiter
UbyteHexString Writes an ubyte[] as an hexadecimal string to a sink

Templates

NameDescription
SyncFunction This template wraps the function's body inside a 'synchronized' statement, so it can be called from multiple threads.

Manifest constants

NameTypeDescription
FuncAttributes returns the function attributues as a string