mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-07 00:20:09 +08:00
Add implementation notes for Listener
This commit is contained in:
parent
bcdff1336b
commit
2d10cc10be
@ -45,6 +45,11 @@ public enum class ListeningStatus {
|
|||||||
*/
|
*/
|
||||||
public interface Listener<in E : Event> : CompletableJob {
|
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.
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 并发类型
|
* 并发类型
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user