We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b4acc4 commit 00487c4Copy full SHA for 00487c4
src/barnacle.gleam
@@ -196,20 +196,21 @@ type State(error) {
196
)
197
}
198
199
-pub fn start(
200
- barnacle: Barnacle(error),
201
- parent: Option(Subject(Subject(Message(error)))),
202
-) {
+pub fn start(barnacle: Barnacle(error)) {
203
barnacle
204
- |> spec(parent)
+ |> spec(None)
205
|> actor.start_spec
206
207
208
pub fn child_spec(
209
barnacle: Barnacle(error),
210
+ parent: Subject(Subject(Message(error))),
211
) {
212
- supervisor.worker(fn(_) { start(barnacle, parent) })
+ supervisor.worker(fn(_) {
+ barnacle
+ |> spec(Some(parent))
+ |> actor.start_spec
213
+ })
214
215
216
pub fn refresh(
0 commit comments