putTag

inline fun <T : Any> putTag(tag: T?)(source)

Attaches tag to the request using T as a key. Tags can be read from a request using CircuitContext.tag. Use null to remove any existing tag assigned for T.

Use this API to attach metadata, debugging, or other application data to a spec so that you may read it in other APIs or callbacks.


fun <S : Any, T : S> putTag(type: KClass<S>, tag: T?)(source)

Attaches tag to the request using type as a key. Tags can be read from a request using CircuitContext.tag. Use null to remove any existing tag assigned for type.

Use this API to attach metadata, debugging, or other application data to a spec so that you may read it in other APIs or callbacks.