Is there a fiber api in .net?

后端 未结 3 1906
北海茫月
北海茫月 2020-12-03 11:31

Out of more curiosity than anything I\'ve been looking for a set of C#/.net classes to support fibers/co-routines (the win32 version) and haven\'t had any luck.

Does

3条回答
  •  醉梦人生
    2020-12-03 11:51

    No. There isn't a Fiber API in the Framework. I suspect this is because there is little advantage to using them - even the fiber API page (native) mentions:

    In general, fibers do not provide advantages over a well-designed multithreaded application.

    .NET makes it so much easier to develop a "well-designed" multithreaded application that I suspect there is little use for a fiber API.

提交回复
热议问题