Skip to content

Commit

Permalink
Remove startupdecorator (#2040)
Browse files Browse the repository at this point in the history
* add startup deadline timer

* startup deadline

* fix api
  • Loading branch information
rogeralsing committed Sep 7, 2023
1 parent efcef50 commit 682fc30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmarks/SpawnBenchmark/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Task ReceiveAsync(IContext context)
}
}

public static readonly Props Props = Props.FromProducer(s => new MyActor(s)).WithMailbox(() => new DefaultMailbox(new LockingUnboundedMailboxQueue(4), new LockingUnboundedMailboxQueue(4)));
public static readonly Props Props = Props.FromProducer(s => new MyActor(s)).WithMailbox(() => new DefaultMailbox(new LockingUnboundedMailboxQueue(4), new LockingUnboundedMailboxQueue(4))).WithStartDeadline(TimeSpan.Zero);

}

Expand Down
2 changes: 1 addition & 1 deletion src/Proto.Actor/Props/Props.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public static PID SystemSpawner(ActorSystem system, string name, Props props, PI
/// </summary>
public Props WithProducer(Producer producer) => this with { Producer = (_, _) => producer() };

public Props PropsWithStartDeadline(TimeSpan deadline) => this with { StartDeadline = deadline };
public Props WithStartDeadline(TimeSpan deadline) => this with { StartDeadline = deadline };

/// <summary>
/// Delegate used to create the actor.
Expand Down

0 comments on commit 682fc30

Please sign in to comment.