Skip to content

Instantly share code, notes, and snippets.

@catern
Created January 28, 2018 04:43
Show Gist options
  • Save catern/d44f9fe32b117d20e553c8a5e8d4762f to your computer and use it in GitHub Desktop.
Save catern/d44f9fe32b117d20e553c8a5e8d4762f to your computer and use it in GitHub Desktop.
def run_foo(a, b, c, readiness_callback):
frobnicate(a)
massage(b)
fun = perambulate(a + b + c)
proc = start_process("fooer", fun, a, b)
obj = FooInterface(a, b)
readiness_callback(obj) # fooer is started and ready now for requests
return proc.wait_for_exit_and_return_exit_code()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment