playMaker

Author Topic: Template async?  (Read 902 times)

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
    • View Profile
Template async?
« on: February 15, 2017, 06:59:41 AM »
Hi there,

This might be an easy question but I've not tested this, I only had a few strange behaviours..

So when the finish event isn't specified in run fsm action and the state has a FINISHED transition - Will the state run the template, and immediately transition to the next stage with the template running async, or will it wait to finish and then transition "finished" ?

And if not then is there a way to use c#'s threading system, async tasks in Playmaker?
« Last Edit: February 15, 2017, 07:01:47 AM by elusiven »

marv

  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
Re: Template async?
« Reply #1 on: February 15, 2017, 07:32:42 AM »
When I experimented with this a while back the state didn't finish until it received the "fsm finished" from the template even without a set finished event in the "run fsm" action. The only way around this I found was to have the template send an event to the host fsm to trigger the next state of the host fsm.

(I can't code, so no idea as to what's possible in that regard)
« Last Edit: February 15, 2017, 07:36:18 AM by marv »