Add implementation notes for Listener

This commit is contained in:
Him188 2021-05-30 09:42:08 +08:00
parent bcdff1336b
commit 2d10cc10be

View File

@ -45,6 +45,11 @@ public enum class ListeningStatus {
*/
public interface Listener<in E : Event> : CompletableJob {
// Impl notes:
// Inheriting CompletableJob is a bad idea. See #1224.
// However we cannot change it as it leads to binary changes.
// We can do it in 3.0 or when we found incompatibility with kotlinx.serialization.
/**
* 并发类型
*/