buildParallelFutureCallback
fun buildParallelFutureCallback(onFrameWritten: (framesWritten: Int, writtenDuration: Duration) -> CompletionStage<*>): ParallelGifEncoder(source)
Builds a ParallelGifEncoder with the specified parameters.
Return
The constructed ParallelGifEncoder.
Parameters
onFrameWritten
An asynchronous callback that is invoked after each frame is written, providing the number of frames written and the total duration of all the frames written so far, returning a CompletionStage that completes when the callback is done. This can be used to track progress or update a UI.
Throws
If any of the builder parameters are invalid.