Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

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
Source by simpy.readthedocs.io #
 
PREVIOUS NEXT
Tagged: #simpy #process #return
ADD COMMENT
Topic
Name
9+5 =