asContextElement

Wraps StrictMode.ThreadPolicy into ThreadContextElement. The resulting ThreadContextElement maintains the given policy for coroutine regardless of the actual thread its is resumed on.