:orphan: .. _s_11PytoRuntime12PkgInstallerV7installyySbAC11WriteActionO_SbztYaYbXEYaKF: ``install(_:)`` =============== Installs the downloaded archive into the home directory. .. raw:: html .. rubric:: Declaration .. raw:: html
mutating func install(
       _ handler: (
           @Sendable
           (
               WriteAction,
               inout Bool
           ) async -> Bool
       )
   ) async throws
   
.. rubric:: Parameters - **handler**: Returns whether the action should be performed. Takes a :swift:symbol:`PytoRuntime.PkgInstaller.WriteAction` and a boolean that can be set to ``true`` to stop the whole installation. .. rubric:: Discussion Calls ``handler`` to let the client decided whether an action should be performed.