Answers for "simpy process return value"

C
0

simpy process return value

import simpy

def example(env):
     value = yield env.timeout(1, value=42)
     print('now=%d, value=%d' % (env.now, value))

env = simpy.Environment()
p = env.process(example(env))
env.run()
#now=1, value=42
Posted by: Guest on June-01-2020

Code answers related to "simpy process return value"

Code answers related to "C"

Browse Popular Code Answers by Language