//! Encode several images concurrently.
//!
//! libwebp is thread-safe for independent encodes, so spawning several encodes at once — each with its own
//! configuration — is perfectly safe. The efficient pattern for batch work is one image per thread, with libwebp's
//! own intra-image threading left off (the default) to avoid CPU oversubscription.
//!
//! Run with:
//!
//! ```text
//! cargo run --example parallel_encode
//! ```
use Error;
use thread;
const SOURCE: &str = concat!;