Skip to content

Commit

Permalink
Update simple_example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Moosems committed Aug 17, 2024
1 parent ed42b4b commit 26614cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/simple_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from time import sleep

from collegamento import (
USER_FUNCTION,
Request,
Expand All @@ -19,6 +21,8 @@ def main():

context.request({"command": "test"})

sleep(1)

output: Response | None = context.get_response("test")
if output is not None and output["result"]: # type: ignore
print("Yippee! It worked!")
Expand Down

0 comments on commit 26614cf

Please sign in to comment.