Skip to content

Instantly share code, notes, and snippets.

@swkwon
Created April 21, 2015 23:32
Show Gist options
  • Save swkwon/f6b790757490a26c9f9f to your computer and use it in GitHub Desktop.
Save swkwon/f6b790757490a26c9f9f to your computer and use it in GitHub Desktop.
void CallbackFunction(std::string& str)
{
auto writeStream = FileOpen('another.txt');
writeStream.write(str);
}
auto readStream = FileOpen('callback.txt');
readStream.ReadEndAsync(CallbackFunction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment