You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I've been working with Judge0 and trying to see if its possible to stream the output of some code, rather than wait for the application to timeout.
i.e the following application loops through the array, printing the result. It has a 1 second sleep between each iteration.
package main
import "fmt"
import "time"
func main() {
nums := []int{2, 3, 4}
sum := 0
for _, num := range nums {
sum += num
fmt.Println("sum:", sum)
time.Sleep(1*time.Second)
}
}
When I try this on https://ide.judge0.com/ it only prints the output at the very end (i.e after the application completes). When self hosting judge0, is it possible to set a config option to allow it to stream back the output?
The text was updated successfully, but these errors were encountered:
Hi I've been working with Judge0 and trying to see if its possible to stream the output of some code, rather than wait for the application to timeout.
i.e the following application loops through the array, printing the result. It has a 1 second sleep between each iteration.
When I try this on https://ide.judge0.com/ it only prints the output at the very end (i.e after the application completes). When self hosting judge0, is it possible to set a config option to allow it to stream back the output?
The text was updated successfully, but these errors were encountered: