Skip to content

Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am bsingh on github.
  • I am bsingh ( on keybase.
  • I have a public key ASDjzfwCYoXdjSgNJ0nRub83s7cZtqjwklhej0wEgR92Tgo

To claim this, I am signing this object:

View line_mgr.erl
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-export([start/0, start_link/0, get_line/0, get_line/1, free_line/1, dump/0, get_lines_info/0]).
-export([get_local_fs_node/0, get_fs_node/0]).
-record(data, {
total_lines :: integer(), % Represents total lines
used_lines :: integer(), % Represents used lines; for tracking purpose only