Skip to content

Commit 428b01c

Browse files
Add example for Asynchronous Execution
1 parent d41a05e commit 428b01c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,16 @@ for i in range(len(submissions)):
205205
print(result.stdout)
206206
print(result.status)
207207
```
208+
209+
### Asynchronous Execution
210+
211+
```python
212+
import judge0
213+
214+
submission = judge0.async_run(source_code="print('hello, world')")
215+
print(submission.stdout) # Prints 'None'
216+
217+
judge0.wait(submissions=submission) # Wait for the submission to finish.
218+
219+
print(submission.stdout) # Prints 'hello, world'
220+
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy