scalacenter / scastie

An interactive playground for Scala
https://scastie.scala-lang.org
Apache License 2.0
432 stars 104 forks source link

Cancel running a snippet #262

Open raboof opened 7 years ago

raboof commented 7 years ago

In particular when experimenting with Akka Streams, it's easy to accidentally write snippets that don't terminate.

It'd be neat to be able to stop/cancel a running snippet.

MasseGuillaume commented 7 years ago

Good idea!

There is a timeout after 40 seconds, but if you know you made a mistake it would be cool to cancel the evaluation.

david-bouyssie commented 4 years ago

Is it possible to increase this timeout?

SethTisue commented 4 years ago

in what scenario is the timeout too short?

david-bouyssie commented 4 years ago

For instance I was trying to query external web services and my script was killed, since computation was too long, with the following message: timed out after 30 seconds when running code

OlegYch commented 4 years ago

@david-bouyssie don't think it will be possible as it will become too easy to abuse

david-bouyssie commented 4 years ago

@OlegYch ok, that's perfectly understandable. However, maybe you should think about revising the text of the timeout message, since it's not trivial to deduce at first sight the origin of the problem.