... This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
... If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

(.require
 [library
  [lux (.except)
   ["$" documentation]
   [data
    [text (.only \n)
     ["%" \\injection]]]]]
 [\\library
  ["[0]" /]])

(the .public documentation
  (.List $.Documentation)
  (list ($.module /._
                  "")

        ($.definition /.already_closed)
        ($.definition /.functor)
        ($.definition /.apply)
        ($.definition /.monad)
        ($.definition /.subscribe!)
        ($.definition /.mixes)
        ($.definition /.poll)
        ($.definition /.periodic)
        ($.definition /.iterations)
        ($.definition /.distinct)
        ($.definition /.list)

        ($.definition (/.Channel it)
          "An asynchronous channel to distribute values.")

        ($.definition (/.Sink it)
          "The tail-end of a channel, which can be written-to to fee the channel.")

        ($.definition /.channel
          "Creates a brand-new channel and hands it over, along with the sink to write to it."
          ($.example (' (channel _))))

        ($.definition (/.Subscriber it)
          "A function that can receive every value fed into a channel.")

        ($.definition /.only
          (%.message "Produces a new channel based on the old one, only with values"
                     \n "that pass the test.")
          ($.example (' (only pass? channel))))

        ($.definition /.of_async
          "A one-element channel containing the output from an async."
          ($.example (' (of_async async))))

        ($.definition /.mix
          "Asynchronous mix over channels."
          ($.example (' (mix f init channel))))

        ($.definition /.sequential
          "Transforms the given list into a channel with the same elements."
          ($.example (' (sequential milli_seconds values))))
        ))
