I want to use an object Result that return a chunk. But when I’m using the example of Play User Guide in my Get Request :
Chunks<String> chunks = new StringChunks() {
// Called when the stream is ready
public void onReady(Chunks.Out<String> out) {
out.write("kiki");
out.write("foo");
out.write("bar");
out.close();
}
};
return ok(chunks);
I see in my log this error:
Execution exception[[TimeoutException: Futures timed out after [0 milliseconds]]]"
I do not figure out why the timeout is 0 and where is set and how can avoid this mistake. Can anyone help me?