install(_:)¶
Installs the downloaded archive into the home directory.
Declaration
mutating func install(
_ handler: (
@Sendable
(
WriteAction,
inout Bool
) async -> Bool
)
) async throws
Parameters
handler: Returns whether the action should be performed. Takes a
WriteActionand a boolean that can be set totrueto stop the whole installation.
Discussion
Calls handler to let the client decided whether an action should be performed.