Replies: 2 comments 1 reply
|
You have control over the send infrastructure, so you can detect that condition in your implementation. |
1 reply
|
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
sendis complete before sending another?/**
*/
public func send (txt: String) {
let array = [UInt8] (txt.utf8)
send (data: array[...])
}
All reactions