The routed outbound chat service (Effect's effect/chat/Chat).
Chat has the ops of every registered adapter and routes each call by
the address's platform. chat.layer provides the router and an empty
Registry; adapter layers stack on top with layer.provide_merge, and
a platform that is off is a layer left out::
@fx.gen
def program():
chat = yield from Chat()
posted = yield from chat.post(chat_thread.make("slack", "T1/C1"), markdown="Hello")
return posted.idRe-exports#
Values#
| Attribute | Type | Description |
|---|---|---|
layer | Layer[Chat | Registry] | The |
Classes#
Functions#
without_retries#
without_retries[A, E, R](effect) -> Effect[A, E, R]effect with adapter retries turned off, so every adapter call in
it makes one attempt. Use with .pipe.
| Parameter | Type | Description |
|---|---|---|
effect | Effect[A, E, R] |
Returns Effect[A, E, R]
def without_retries[A, E, R](effect: Effect[A, E, R]) -> Effect[A, E, R]:
"""``effect`` with adapter retries turned off, so every adapter call in
it makes one attempt. Use with ``.pipe``."""
require_effect(effect, "effect")
return effect.pipe(fx.provide_service(RetriesDisabled, True))