org.scalajs.nodejs.drama.Drama.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalajs-npm-drama_sjs0.6_2.11 Show documentation
Show all versions of scalajs-npm-drama_sjs0.6_2.11 Show documentation
npm/drama binding for Scala.js
The newest version!
package org.scalajs.nodejs
package drama
import scala.scalajs.js
/**
* Actor model implementation for JavaScript and Node.js (work in progress)
* Inspirations: Scala Actors, Akka, Pykka
* @author [email protected]
*/
@js.native
trait Drama extends NodeModule {
/**
* Creates a new actor system
* @param systemName the name of the actor system
* @return a new actor system
*/
def apply(systemName: String): ActorSystem = js.native
}
/**
* Drama Companion
* @author [email protected]
*/
object Drama {
/**
* Convenience method for retrieving the drama module
* @param require the implicit [[NodeRequire require function]]
* @return the Drama instance
*/
def apply()(implicit require: NodeRequire) = require[Drama]("drama")
}