Replace the per-call std::async OS-thread spawns in the blocking
fan-out/collect paths with a bounded Void::Concurrency::ThreadPool member,
giving thread reuse instead of an unbounded thread per request:
- YouTubeClient: getVideoInfoAsync, getPlaylistAsync, and the two playlist
resolution batches now submit to pool_. The std::future<T>/.get() join
semantics are unchanged, so control flow is identical.
- NetworkClient: getAsync/postAsync/requestAsync (and thus requestBatch)
submit to pool_.
populateShortenedUrls is deliberately left on std::async — it relies on
wide parallelism under a tight 5s budget, which a bounded pool would
throttle. Build green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace YouTubeClient's local jHas/jStr/jNum/jObj/jArr free-function helpers
(and their ~77 call sites) with the new Void::Json::Value member accessors
has/get_str/get_num/child_object/child_array. Same safe semantics
(missing/wrong-type → default/nullptr), now shared across the project.
Requires the VoidLibrary re-pin that adds the accessors.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mechanically convert std::unexpected(Api::Error(ErrorCode::X, msg[, src]))
to Api::fail(ErrorCode::X, msg[, src]) across Core. Pure syntax; forwards of
existing errors (std::unexpected(x.error())) are unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Remove YouTubeClient::urlEncode/decodeHtmlEntities/parseIso8601Duration and
StateSerializer::getCurrentTimestampISO8601 — each just forwarded to one Void
call — and have the ~12 call sites call Void directly
(Void::Encoding::Url::encode, Void::Text::html_unescape,
Void::Time::parse_iso8601_interval(...).value_or(0), Void::Time::utc_now_iso8601).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>