egametang / ET

Unity3D Client And C# Server Framework
Other
8.76k stars 2.99k forks source link

ETTask #513

Open darkragna opened 9 months ago

darkragna commented 9 months ago

Hello,

What is the purpose of ETTask? Can it be changed to Task/ValueTask? Cheers!

egametang commented 9 months ago

ETTask is a task like class,it has no gc,more lightweight,better performance。but it is only supports single threading

darkragna commented 9 months ago

ETTask is a task like class,it has no gc,more lightweight,better performance。but it is only supports single threading

Thanks for answering! It's safe to mix ETTask with Task? For example, make use of the Entity Framework (async) and other types of calls?

egametang commented 9 months ago

If the await before and after are on the same thread,it is safe