examples/basic.py returns None
See original GitHub issueI am trying to run the the examples/basic.py
, which shows nothing on a screen (no print statement is executed). Running stan server in debug mode using -SD
flag, I see the client connecting to the stream, successfully subscribing, removing subscription and closing down. At the same time, adding an extra line await asyncio.sleep(0.1)
after await sc.subscribe
prints the result successfully, which makes me think that the execution of run
finishes before stan returns any results. Could you comment on this?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Python: My function returns "None" after it does what I want it to
If the python function does not come across a return statement it prints None by default. Making a small change as shown below...
Read more >Leveraging Python's Implicit "return None" Statements
https://dbader.org/ python -tricks ▻ Write better and cleaner Python code with these bite-sized examples and tipsPython adds an implicit ...
Read more >Returning None Explicitly - Real Python
First, we'll look at returning None explicitly. As you've seen, Python will return a value of None in several situations, but there might...
Read more >Python Code Examples – Sample Script Coding Tutorial for ...
Tip: if a function doesn't have a return statement or doesn't find one during its execution, it returns None by default. The Style...
Read more >Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
If the object accessed or function called is undefined or null, it returns undefined instead of throwing an error.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
good call, just updated as well 👍
thank you! 💃