-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path__init__.py
More file actions
49 lines (45 loc) · 1.19 KB
/
Copy path__init__.py
File metadata and controls
49 lines (45 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
A system for helping you separate your IO and state-manipulation code
(hereafter referred to as "effects") from everything else, thus allowing
the majority of your code to be easier to test and compose (that is,
have the general benefits of purely functional code).
See https://effect.readthedocs.org/ for documentation.
"""
from ._base import Effect, perform, NoPerformerFoundError, catch, raise_
from ._sync import NotSynchronousError, sync_perform, sync_performer
from ._intents import (
Delay,
perform_delay_with_sleep,
ParallelEffects,
parallel,
parallel_all_errors,
FirstError,
Constant,
Error,
Func,
base_dispatcher,
)
from ._dispatcher import ComposedDispatcher, TypeDispatcher
__all__ = [
# Order here affects the order that these things show up in the API docs.
"Effect",
"sync_perform",
"sync_performer",
"base_dispatcher",
"TypeDispatcher",
"ComposedDispatcher",
"Delay",
"perform_delay_with_sleep",
"ParallelEffects",
"parallel",
"parallel_all_errors",
"Constant",
"Error",
"Func",
"catch",
"raise_",
"NoPerformerFoundError",
"NotSynchronousError",
"perform",
"FirstError",
]