mojox, events need to run on new fiber

About Monkey 2 Forums Monkey 2 Development mojox, events need to run on new fiber

This topic contains 18 replies, has 4 voices, and was last updated by  CopperCircle 2 years, 5 months ago.

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #4852

    Mark Sibly
    Keymaster

    But yeah going off topic a little.

    Not at all, this is good stuff! The more approaches we know about, the better the chances of coming up with decent solutions.

    #4853

    skn3
    Participant

    winner! so let me tell you some more about promises!

    lol

    [/crayon]

    I dunno, but this just pleases me.

    #4856

    nerobot
    Participant

    Nice topic.

    In c# there is Task<T> class to wrap async results. When you call

    keyword ‘await’ extract result ‘T’ type for you.

    Also c# has functions Task.WaitAll() and Task.WaitAny().

    WaitAll() easy to do with model discussed above. Like this

    WaitAny – more difficult, need to subscribe on OnFinished event, that we should to add into Fiber execution section.

    #4866

    CopperCircle
    Participant

    I am also more used to the C# way of dealing with async, but I do like the way Promises work for batch async processes, the one catch for all is nice.

Viewing 4 posts - 16 through 19 (of 19 total)

You must be logged in to reply to this topic.