mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-01-05 16:19:43 -06:00
Blocked event loop blog post (#1775)
* feat: snippets * feat: first couple paragraphs * feat: flesh out hatchet examples * fix: one more * feat: log view * fix: cleanup * feat: another section * fix: fmt * feat: debugging section * fix: proofread * fix: lint * chore: gen * fix: copilot * fix: copilot * feat: add blog post link * fix: feedback * chore: sdk ver * chore: gen * fix: ugh
This commit is contained in:
20
examples/python/blocked_async/blocking_example_trigger.py
Normal file
20
examples/python/blocked_async/blocking_example_trigger.py
Normal file
@@ -0,0 +1,20 @@
|
||||
# > Trigger
|
||||
import time
|
||||
|
||||
from examples.blocked_async.blocking_example_worker import (
|
||||
blocking,
|
||||
non_blocking_async,
|
||||
non_blocking_sync,
|
||||
)
|
||||
|
||||
non_blocking_sync.run_no_wait()
|
||||
non_blocking_async.run_no_wait()
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
blocking.run_no_wait()
|
||||
|
||||
time.sleep(1)
|
||||
|
||||
non_blocking_sync.run_no_wait()
|
||||
|
||||
Reference in New Issue
Block a user