Method RollbackAsync(string, CancellationToken, string?)
Rolls back a module to the previous version.
overwrittenPath — the path the FAILED new version was loaded from
(passed by HotSwapAsync): when it equals the previous version's path, the update was
in-place and the file on disk now holds the broken bytes — reloading it would be a fake
rollback (review 2026-09-02, С21).
Returns true if rollback succeeded.
public Task<bool> RollbackAsync(string moduleName, CancellationToken ct = default, string? overwrittenPath = null)