Portal.Door

Source

Summary

get(door)

Get the data currently in the door

pop(door)

Pops a value from the door

push(door, value)

Push value into the door

start_link(color)

Starts a door with the given color

Functions

get(door)

Get the data currently in the door.

Source
pop(door)

Pops a value from the door.

It returns {:ok, value} if there is a value or :error if the whole is currently empty.

Source
push(door, value)

Push value into the door.

Source
start_link(color)

Starts a door with the given color.

The color is given as a name so we can identify the door by color name instead of using a PID.

Source