Click or drag to resize
Akka.NETSpawnspawnMessage, Returned Method
Spawns an actor using specified actor computation expression. The actor can only be used locally.

Namespace:  Akka.FSharp
Assembly:  Akka.FSharp (in Akka.FSharp.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static IActorRef spawn<Message, Returned>(
	IActorRefFactory actorFactory,
	string name,
	FSharpFunc<ActorsActor<Message>, ActorsCont<Message, Returned>> f
)

Parameters

actorFactory
Type: Akka.ActorIActorRefFactory
Either actor system or parent actor
name
Type: SystemString
Name of spawned child actor
f
Type: Microsoft.FSharp.CoreFSharpFuncActorsActorMessage, ActorsContMessage, Returned
Used by actor for handling response for incoming request

Type Parameters

Message

[Missing <typeparam name="Message"/> documentation for "M:Akka.FSharp.Spawn.spawn``2(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Core.FSharpFunc{Akka.FSharp.Actors.Actor{``0},Akka.FSharp.Actors.Cont{``0,``1}})"]

Returned

[Missing <typeparam name="Returned"/> documentation for "M:Akka.FSharp.Spawn.spawn``2(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Core.FSharpFunc{Akka.FSharp.Actors.Actor{``0},Akka.FSharp.Actors.Cont{``0,``1}})"]

Return Value

Type: IActorRef

[Missing <returns> documentation for "M:Akka.FSharp.Spawn.spawn``2(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Core.FSharpFunc{Akka.FSharp.Actors.Actor{``0},Akka.FSharp.Actors.Cont{``0,``1}})"]

See Also