Replies: 2 comments 1 reply
-
You have control over the send infrastructure, so you can detect that condition in your implementation. |
Beta Was this translation helpful? Give feedback.
-
There is no such notification for "the send finished", you being in full control over how the implementation of send is, can determine how to invoke whatever hooks you want. From the sounds of your questions, I think that you might be hoping that "sending" means processed, and those are two very different things, and I am afraid you are about to find yourself into a world of things that are just not as robust as you hope. This is why scripting languages like "Expect" came to be - an entire framework to deal with this unreliable world. |
Beta Was this translation helpful? Give feedback.
-
I'm using the below function to send bash commands and it's working, but the problem is I want to send multiple commands once at a time. Is there a way for me to listen/wait until the first
send
is complete before sending another?/**
*/
public func send (txt: String) {
let array = [UInt8] (txt.utf8)
send (data: array[...])
}
Beta Was this translation helpful? Give feedback.
All reactions