pallet.phase documentation

A phase is a function of a single session argument, that contains calls to crate functions or actions. A phase has an implicitly defined pre and post phase.

all-phases-for-phase

fn

[phase]

Return a sequence including the implicit pre and post phases for a phase.

check-session-thread

macro

[arg & body]

Add session checking to a sequence of calls which thread a session map. e.g.

(->
  session
  (check-session-thread
    (file "/some-file")
    (file "/other-file")))

The example is thus equivalent to:

(-> session
  (check-session "The session passed to the pipeline")
  (check-session (file "/some-file"))
  (check-session (file "/other-file")))

post-phase-name

fn

[phase]

Return the name for the post-phase for the given phase.

pre-phase-name

fn

[phase]

Return the name for the pre-phase for the given phase.

schedule-in-post-phase

macro

[& body]

Specify that the body should be executed in the post-phase.

schedule-in-pre-phase

macro

[& body]

Specify that the body should be executed in the pre-phase.

subphase-for

fn

[phase]

Return the phase this is a subphase for, or nil if not a subphase