Vik.Thread (Vik v0.0.1-rc1)

View Source

Manages compilation and side-effects.

  • Communicates with the LiveViews over PubSub to report on compiler logs, stale Shards etc.

  • Ensures the Vik.Store is properly populated with the results produced by the Vik.Compiler.

Summary

Functions

ensure_compiled!(slug)

@spec ensure_compiled!(Vik.Shard.t()) :: Vik.Result.t()

eval(shard)

@spec eval(Vik.Shard.t()) :: {:ok, Vik.Result.t()} | {:error, Exception.t()}

eval!(shard)

@spec eval!(Vik.Shard.t()) :: Vik.Result.t()

mark_stale(shard)

@spec mark_stale(Vik.Shard.t()) :: :ok

provision(attempt \\ 0)

@spec provision(integer()) :: :ok