CoroutineMiddleware

A Middleware that uses coroutines. Extending the class removes the boilerplate to manage coroutines inside the service.

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Returns current state of middleware, true if already attached, false otherwise

Functions

Link copied to clipboard
fun detach()

Function called to detach middleware context if it exists

Link copied to clipboard
open override fun onAttached(middlewareContext: C)

Called when the middleware is attached to the given context.

Link copied to clipboard
open override fun onDetached(middlewareContext: C)

Called when the middleware is detached from the given context.