feat[virtual thread]: support virtual thread in net

This commit is contained in:
sun
2023-09-20 17:38:59 +08:00
parent cd8431ec95
commit 54209d9cc9
@@ -383,7 +383,7 @@ public class Router implements IRouter {
}
if (receiver.task() == Task.VirtualThread && receiver.attachment() == null) {
logger.warn("virtual thread task can not set Attachment, may cause some sync and async timeout, please use attachment in receiver method signature");
logger.warn("virtual thread task can not set Attachment, may cause some sync and async timeout exception, please use attachment in receiver method signature and use attachment in sync and async request");
}
receiver.invoke(session, packet, attachment);