Skip to content

Commit

Permalink
Add projection option constants to trigger pcntl_signal_dispatch in p…
Browse files Browse the repository at this point in the history
…rojection loop
  • Loading branch information
fritz-gerneth committed Jun 30, 2017
1 parent d7777b5 commit 0ef8fbc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Projection/Projector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ interface Projector
public const OPTION_SLEEP = 'sleep';
public const OPTION_PERSIST_BLOCK_SIZE = 'persist_block_size';
public const OPTION_LOCK_TIMEOUT_MS = 'lock_timeout_ms';
public const OPTION_PCNTL_DISPATCH = 'trigger_pcntl_dispatch';

public const DEFAULT_CACHE_SIZE = 1000;
public const DEFAULT_SLEEP = 100000;
public const DEFAULT_PERSIST_BLOCK_SIZE = 1000;
public const DEFAULT_LOCK_TIMEOUT_MS = 1000;
public const DEFAULT_PCNTL_DISPATCH = false;

/**
* The callback has to return an array
Expand Down

0 comments on commit 0ef8fbc

Please sign in to comment.