def perform_locked

cswap-bend-cli@0.1.0.0 · swrun.bend:180

import cswap-bend-cli@0.1.0.0/swrun.bend as Swrun
import Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/fs.bend as Fs
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/swlive.bend as L
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase

180# The switch itself, under every lock the reference takes.
181def perform_locked(+ctx: SBase.Ctx, +target: String, +force: Bool, +pre: L.Pre, +ts: String) -> Act.of(Json.Json):
182  do ActM<Json.Json>:
183    +seq_text : String <- Fs.read_file(SBase.seq_path(SBase.root_of(ctx)))
184    perform2(ctx, SBase.root_of(ctx), target, force, pre, ts, seq_text, Json.parse(seq_text))

Uses (13)

Used by (1)