You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/17 09:28:48 UTC

[plc4x] 01/02: chore(doc): added note about blocking calls in MessageCodec

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit a961351265a4fcaf71c19ea443c4ffd9c8396362
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Aug 17 11:27:44 2022 +0200

    chore(doc): added note about blocking calls in MessageCodec
---
 plc4go/spi/MessageCodec.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/spi/MessageCodec.go b/plc4go/spi/MessageCodec.go
index f8a537b11..8507dae74 100644
--- a/plc4go/spi/MessageCodec.go
+++ b/plc4go/spi/MessageCodec.go
@@ -56,7 +56,7 @@ type MessageCodec interface {
 	// Expect Wait for a given timespan for a message to come in, which returns 'true' for 'acceptMessage'
 	// and is then forwarded to the 'handleMessage' function
 	Expect(ctx context.Context, acceptsMessage AcceptsMessage, handleMessage HandleMessage, handleError HandleError, ttl time.Duration) error
-	// SendRequest A combination that sends a message first and then waits for a response
+	// SendRequest A combination that sends a message first and then waits for a response. !!!Important note: the callbacks are blocking calls
 	SendRequest(ctx context.Context, message Message, acceptsMessage AcceptsMessage, handleMessage HandleMessage, handleError HandleError, ttl time.Duration) error
 
 	// GetDefaultIncomingMessageChannel gives back the chan where unexpected messages arrive