abstract class Movie::ExtensionId(T)

Overview

Akka-style extension id helper for lazy, per-system singletons. T is expected to be a Movie::Extension subclass.

Direct Known Subclasses

Defined in:

movie/extension_id.cr

Instance Method Summary

Instance Method Detail

abstract def create(system : AbstractActorSystem) : T #

Create a new extension instance for the given system.


[View source]
def get(system : AbstractActorSystem) : T #

Returns the extension instance, creating and registering it on first access.


[View source]