Skip to content

Should init/2 return {ok, ...} or ignore? #125

@therealcarloratm

Description

@therealcarloratm

Just a question, I am not an expert.

I see here the typespec says init/2 should return {ok, standard} or {ok, handover}:

-callback init(Req, Args) -> {ok, standard | handover} when

While here it mentions ignore as a return value:

%% otherwise `ignore'.

What's the correct one?

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions