You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When implementing CoroutineContext.Element on an enum class using a companion object for the key, a NullPointerException will be thrown when trying to do something like start a new job. My guess is that this occurs because the enumerations of Foo are initialized before Foo.Key is initialized. But if that's the case, shouldn't there be a compiler error to prevent key from having a null value?