def pour_colour_mixture(color, tray, index): perform_operation(0.005) tray.append((index, color + ' '))
def prepare_sandwich(): perform_operation(1)
def pour_colour_mixture(color, tray): perform_operation(0.005) tray.append(color + ' ')
async def prepare_milk_shake(): await perform_io_operation_async(1) perform_operation(0.5)
def prepare_ice_cream(): perform_operation(0.5)
async def prepare_kue_lapis(): await perform_io_operation_async(2) perform_operation(1)
def take_order(_): print('customer {} was served at '.format(_), datetime.now()) perform_operation(1)
def prepare_milk_shake(): perform_io_operation(1) perform_operation(0.5)
def prepare_kue_lapis(): perform_io_operation(2) perform_operation(1)
def start_mixer(): perform_operation(1.0)