forked from goodboy/tractor
1
0
Fork 0

Merge pull request #106 from goodboy/fix_examples_in_docs

Add script "guards" to docs examples
fix_win_ci_again
goodboy 2020-02-07 10:09:38 -06:00 committed by GitHub
commit 4bd3a14a68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -146,6 +146,7 @@ the hip new film we're shooting:
print("CUTTTT CUUTT CUT!!! Donny!! You're supposed to say...") print("CUTTTT CUUTT CUT!!! Donny!! You're supposed to say...")
if __name__ == '__main__':
tractor.run(main) tractor.run(main)
@ -192,6 +193,8 @@ and use the ``run_in_actor()`` method:
print(await portal.result()) print(await portal.result())
if __name__ == '__main__':
tractor.run(main) tractor.run(main)