Skip to content

Conversation

@dgafka
Copy link
Member

@dgafka dgafka commented Jan 25, 2026

Why is this change proposed?

This is to improve DX when working with time (e.g. delayed messages).

        $messageChannel->send(
            MessageBuilder::withPayload('some')
                ->setHeader(MessageHeaders::DELIVERY_DELAY, 2000)
                ->build()
        );

        $ecotoneLite->waitTill(TimeSpan::withSeconds(1));

        $this->assertNull($messageChannel->receive());

        $ecotoneLite->waitTill(TimeSpan::withSeconds(3));

        $this->assertNotNull($messageChannel->receive());

Description of Changes

Pull Request Contribution Terms

  • I have read and agree to the contribution terms outlined in CONTRIBUTING.

@dgafka dgafka merged commit 8c44033 into main Jan 25, 2026
8 checks passed
@dgafka dgafka deleted the feature/clock-follow-up branch January 25, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants