Skip to content

Commit

Permalink
fix typespecs in UtilitySupervisor
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Nov 20, 2023
1 parent cd5b007 commit 6e0a148
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/membrane/utility_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,22 @@ defmodule Membrane.UtilitySupervisor do

@doc """
Starts a process under the utility supervisor.
Semantics of the `child_spec` argument is the same as in `Supervisor.child_spec/2`.
"""
@spec start_child(t, Supervisor.child_spec()) :: Supervisor.on_start_child()
@spec start_child(t, Supervisor.child_spec() | {module(), term()} | module()) ::
Supervisor.on_start_child()
defdelegate start_child(supervisor, child_spec),
to: Membrane.Core.SubprocessSupervisor,
as: :start_utility

@doc """
Starts a process under the utility supervisor and links it to the current process.
Semantics of the `child_spec` argument is the same as in `Supervisor.child_spec/2`.
"""
@spec start_link_child(t, Supervisor.child_spec()) :: Supervisor.on_start_child()
@spec start_link_child(t, Supervisor.child_spec() | {module(), term()} | module()) ::
Supervisor.on_start_child()
defdelegate start_link_child(supervisor, child_spec),
to: Membrane.Core.SubprocessSupervisor,
as: :start_link_utility
Expand Down

0 comments on commit 6e0a148

Please sign in to comment.