Liking cljdoc? Tell your friends :D

clojure.core.async.impl.ioc-macros


-item-to-ssacljmultimethod

source

add-blockclj

(add-block)

Adds a new block, returns its id, but does not change the current block (does not call set-block).

Adds a new block, returns its id, but does not change the current block (does not call set-block).
sourceraw docstring

add-instructionclj

(add-instruction inst)

Appends an instruction to the current block.

Appends an instruction to the current block. 
sourceraw docstring

aget-objectclj

(aget-object arr idx)
source

allclj

(all itms)

Assumes that itms is a list of state monad function results, threads the state map through all of them. Returns a vector of all the results.

Assumes that itms is a list of state monad function results, threads the state map
through all of them. Returns a vector of all the results.
sourceraw docstring

aset-all!cljmacro

(aset-all! arr & more)
source

aset-objectclj

(aset-object arr idx o)
source

assoc-in-planclj

(assoc-in-plan path val)

Same as assoc-in, but for state hash map

Same as assoc-in, but for state hash map
sourceraw docstring

async-custom-terminatorsclj

source

BINDINGS-IDXclj

source

count-persistent-valuesclj

(count-persistent-values index)
source

debugclj

(debug x)
source

emit-hintedclj

(emit-hinted local tag env)
source

EXCEPTION-FRAMESclj

source

finished?clj

(finished? state-array)

Returns true if the machine is in a finished state

Returns true if the machine is in a finished state
sourceraw docstring

FN-IDXclj

source

gen-plancljmacro

(gen-plan binds id-expr)

Allows a user to define a state monad binding plan.

(gen-plan [_ (assoc-in-plan [:foo :bar] 42) val (get-in-plan [:foo :bar])] val)

Allows a user to define a state monad binding plan.

(gen-plan
  [_ (assoc-in-plan [:foo :bar] 42)
   val (get-in-plan [:foo :bar])]
  val)
sourceraw docstring

get-bindingclj

(get-binding key)

Gets the value of the current binding for key

Gets the value of the current binding for key
sourceraw docstring

get-blockclj

(get-block)

Gets the current block

Gets the current block
sourceraw docstring

get-in-planclj

(get-in-plan path)

Same as get-in, but for a state hash map

Same as get-in, but for a state hash map
sourceraw docstring

get-planclj

(get-plan f)

Returns the final [id state] from a plan.

Returns the final [id state] from a plan. 
sourceraw docstring

id-for-instclj

(id-for-inst m sym)
source

IEmittableInstructioncljprotocol

emit-instructionclj

(emit-instruction this state-sym)

Returns the clojure code that this instruction represents

Returns the clojure code that this instruction represents
source

IInstructioncljprotocol

block-referencesclj

(block-references this)

Returns all the blocks this instruction references

Returns all the blocks this instruction references

reads-fromclj

(reads-from this)

Returns a list of instructions this instruction reads from

Returns a list of instructions this instruction reads from

writes-toclj

(writes-to this)

Returns a list of instructions this instruction writes to

Returns a list of instructions this instruction writes to
source

index-blockclj

(index-block idx [blk-id blk])
source

index-instructionclj

(index-instruction blk-id idx inst)
source

index-state-machineclj

(index-state-machine machine)
source

instruction?clj

(instruction? x)
source

item-to-ssaclj

(item-to-ssa ast)
source

ITerminatorcljprotocol

terminate-blockclj

(terminate-block this state-sym custom-terminators)

Emites the code to terminate a given block

Emites the code to terminate a given block

terminator-codeclj

(terminator-code this)

Returns a unique symbol for this instruction

Returns a unique symbol for this instruction
source

let-binding-to-ssaclj

(let-binding-to-ssa {:keys [name init form]})
source

make-envclj

(make-env input-env crossing-env)
source

mark-transitionsclj

(mark-transitions {:keys [op fn] :as ast})
source

nested-go?clj

(nested-go? env)
source

no-opclj

(no-op)

This function can be used inside a gen-plan when no operation is to be performed

This function can be used inside a gen-plan when no operation is to be performed
sourceraw docstring

parse-to-state-machineclj

(parse-to-state-machine body terminators)

Takes an sexpr and returns a hashmap that describes the execution flow of the sexpr as a series of SSA style blocks.

Takes an sexpr and returns a hashmap that describes the execution flow of the sexpr as
a series of SSA style blocks.
sourceraw docstring

passesclj

source

pdebugclj

(pdebug x)
source

persistent-value?clj

(persistent-value? index value)

Returns true if this value should be saved in the state hash map

Returns true if this value should be saved in the state hash map
sourceraw docstring

pop-bindingclj

(pop-binding key)

Removes the most recent binding for key

Removes the most recent binding for key
sourceraw docstring

(print-plan)
source

propagate-recurclj

(propagate-recur ast)
source

propagate-transitionsclj

(propagate-transitions {:keys [op] :as ast})
source

push-alter-bindingclj

(push-alter-binding key f & args)

Pushes the result of (apply f old-value args) as current value of binding key

Pushes the result of (apply f old-value args) as current value of binding key
sourceraw docstring

push-bindingclj

(push-binding key value)

Sets the binding 'key' to value. This operation can be undone via pop-bindings. Bindings are stored in the state hashmap.

Sets the binding 'key' to value. This operation can be undone via pop-bindings.
Bindings are stored in the state hashmap.
sourceraw docstring

put!clj

(put! state blk c val)
source

return-chanclj

(return-chan state value)
source

run-passesclj

source

run-state-machineclj

(run-state-machine state)
source

run-state-machine-wrappedclj

(run-state-machine-wrapped state)
source

set-blockclj

(set-block block-id)

Sets the current block being written to by the functions. The next add-instruction call will append to this block

Sets the current block being written to by the functions. The next add-instruction call will append to this block
sourceraw docstring

STATE-IDXclj

source

state-machineclj

(state-machine body num-user-params [crossing-env env] user-transitions)
source

take!clj

(take! state blk c)
source

update-in-planclj

(update-in-plan path f & args)

Same as update-in, but for a state hash map

Same as update-in, but for a state hash map
sourceraw docstring

USER-START-IDXclj

source

VALUE-IDXclj

source

var-nameclj

(var-name v)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close