Prints what a channel ends up with — the value, or the error it carries.
For looking at a channel at the REPL. Printing a go channel
directly shows the channel object, and a plain println on its
value would show a carried error as an inert map rather than as the
failure it is. These take the value out with jtk-dvlp.async/<!, so
an error shows up as an error.
Debug aids, not logging: they print, they do not report.
Prints what a channel ends up with — the value, or the error it carries. For looking at a channel at the REPL. Printing a `go` channel directly shows the channel object, and a plain `println` on its value would show a carried error as an inert map rather than as the failure it is. These take the value out with `jtk-dvlp.async/<!`, so an error shows up as an error. Debug aids, not logging: they print, they do not report.
(<debug print-fn <form)Takes the value of channel <form and hands it to print-fn —
or hands it the error, if the channel carries one.
Yields a channel with whatever print-fn returned, so it can be
waited on. <println and <pprint are this with a fixed
print-fn.
Takes the value of channel `<form` and hands it to `print-fn` — or hands it the error, if the channel carries one. Yields a channel with whatever `print-fn` returned, so it can be waited on. `<println` and `<pprint` are this with a fixed `print-fn`.
(<pprint <form)Pretty-prints the value of channel <form, or the error it
carries. Yields a channel that closes when done.
For a carried error this is the readable way to see it: the
printed form shows message, ex-data and the stitched stack
trace across the ASYNC_BOUNDARY marker.
Pretty-prints the value of channel `<form`, or the error it carries. Yields a channel that closes when done. For a carried error this is the readable way to see it: the printed form shows message, `ex-data` and the stitched stack trace across the `ASYNC_BOUNDARY` marker.
(<println <form)Prints the value of channel <form with println, or the error
it carries. Yields a channel that closes when done.
Prints the value of channel `<form` with `println`, or the error it carries. Yields a channel that closes when done.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |