zcash-android-wallet-sdk / cash.z.wallet.sdk.ext / CompositeTwig

CompositeTwig

open class CompositeTwig : Twig

Since there can only ever be one trunk on the bush of twigs, this class lets you cheat and make that trunk be a bundle of twigs.

Constructors

<init>

Since there can only ever be one trunk on the bush of twigs, this class lets you cheat and make that trunk be a bundle of twigs.

CompositeTwig(twigBundle: MutableList<Twig>)

Functions

plus

Bundles twigs together

open operator fun plus(twig: Twig): Twig

twig

Log the message. Simple.

open fun twig(logMessage: String): Unit

Extension Functions

twig

Times a tiny log. Execute the block of code on the clock.

fun <R> Twig.twig(logMessage: String, block: () -> R): R

twigTask

A tiny log task. Execute the block of code with some twigging around the outside. For silent twigs, this adds a small amount of overhead at the call site but still avoids logging.

fun <R> Twig.twigTask(logMessage: String, block: () -> R): R