To get started with Akkling, you first create an actor system using System.create with a configuration. You can then spawn an anonymous actor using spawnAnonymous. Because Akkling supports typed actor references, the messages sent to the actor must match the type defined in the actorOf function. Attempting to send a message of a different type will result in a static type error.
open Akkling
use system = System.create "my-system" <| Configuration.defaultConfig()
let aref = spawnAnonymous system <| props(actorOf (fun m -> printfn "%s" m |> ignored))
aref <! "hello world"
// aref <! 1 // This would cause a static type error because the actor expects strings