Liking cljdoc? Tell your friends :D

cljs.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

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

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

CURRENT-EXCEPTIONclj

source

debugclj

(debug x)
source

default-sexprclj

(default-sexpr args)
source

EXCEPTION-FRAMESclj

source

expandclj

(expand locals env form)
source

fixup-aliasesclj

(fixup-aliases sym env)
source

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

is-special?clj

(is-special? x)
source

item-to-ssaclj

(item-to-ssa x)
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 [sym bind])
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 env 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

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

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

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

sexpr-to-ssacljmultimethod

source

special-override?clj

source

STATE-IDXclj

source

state-machineclj

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

terminate-customclj

(terminate-custom vals term)
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

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

× close