:orphan: .. _s_11PytoRuntime12PkgInstallerV18downloadAndExtract15progressHandleryyAC8ProgressOYaYbcSg_tYaKF: ``downloadAndExtract(progressHandler:)`` ======================================== Downloads and extracts the archive with the ``tar`` command into a temporary directory. .. raw:: html .. rubric:: Declaration .. raw:: html
mutating func downloadAndExtract(
       progressHandler: (
           @Sendable
           (
               Progress
           ) async -> Void
       )? = nil
   ) async throws
   
.. rubric:: Parameters - **progressHandler**: Called to report the progress. Takes a :swift:symbol:`PytoRuntime.PkgInstaller.Progress`. .. rubric:: Discussion Sets the :swift:symbol:`PytoRuntime.PkgInstaller.downloadedCacheURL` variable.