config

Apply settings to the TorConfig at each startup. Multiple block may be set, each of which will be applied to the TorConfig.Builder before starting tor.

block is always invoked from a background thread on Jvm & Native, so it is safe to perform IO within the lambda.

Any exception thrown within block will be propagated to the caller of Action.StartDaemon or Action.RestartDaemon.

NOTE: This can be omitted as a minimum viable configuration is always created. See ConfigCallback.Defaults for what settings are automatically applied.

NOTE: block should not contain any external contextual references, such as Android Activity Context.