Class FutureWriter

java.lang.Object
java.io.Writer
io.pebbletemplates.pebble.utils.FutureWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public class FutureWriter extends Writer
A Writer that will wrap around the user-provided writer if the user also provided an ExecutorService to the main PebbleEngine. A FutureWriter is capable of handling Futures that will return a string. It is not thread safe but that is okay. Each thread will have its own writer, provided by the "parallel" node; i.e. they will never share writers.