Click or drag to resize
Akka.NETSpawnspawnOptMessage, Returned Method
Spawns an actor using specified actor computation expression, with custom spawn option settings. The actor can only be used locally.

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

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
options
Type: Microsoft.FSharp.CollectionsFSharpListSpawnSpawnOption
List of options used to configure actor creation

Type Parameters

Message

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

Returned

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

Return Value

Type: IActorRef

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

See Also