Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Horusiath/Akkling

Experimental F# typed API for Akka.NET
https://github.com/Horusiath/Akkling

Last synced: 4 months ago
JSON representation

Experimental F# typed API for Akka.NET

Awesome Lists containing this project

README

        

# Akkling

This is the experimental fork of Akka.FSharp library, introducing new features such as typed actor refs, and also simplifying existing Akka.FSharp API. The main reason for splitting from official API is to be able to introduce new (also experimental), but possibly breaking changes outside existing Akka release cycle.

**Read [wiki pages](https://github.com/Horusiath/Akkling/wiki/Table-of-contents) for more info.**

## Get's started

For more examples check [examples](https://github.com/Horusiath/Akkling/tree/master/examples) section.

Obligatory hello world example:

```fsharp
open Akkling

use system = System.create "my-system" <| Configuration.defaultConfig()
let aref = spawnAnonymous system <| props(actorOf (fun m -> printfn "%s" m |> ignored))

aref printfn "Who sent Hi? %s?" lastKnown |> ignored
| Greet(who) ->
printfn "%s sends greetings" who
become (greeter who)

let aref = spawn system "greeter" <| props(actorOf (greeter "Unknown"))

aref