Skip to content

Rocket Seat - Ignite - Elixir - Challenge 15 - Am implementation of queues using GenServers.

Notifications You must be signed in to change notification settings

librity/ignite_queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rocket Seat Ignite - Queue Server

Table of Contents

About

Am implementation of queues using GenServers.

Bash Commands

# Create new Elixir project
$ mix new project_name
# Intall dependencies
$ mix deps.get
# Generate linter config
$ mix credo gen.config
# Run linter
$ mix credo --strict
# Start your project as an Interactive Elixir session
$ iex -S mix
# Run tests
$ mix test

Elixir Commands

> {:ok, pid} = Queue.initialize_queue([1, 2, 3])
> Queue.enqueue(pid, 5)
:ok
> Queue.dequeue(pid)
1
> Queue.dequeue(pid)
2
> Queue.dequeue(pid)
3
> Queue.dequeue(pid)
5
> Queue.dequeue(pid)
nil

Libs

Docs

About

Rocket Seat - Ignite - Elixir - Challenge 15 - Am implementation of queues using GenServers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages