react-native-windows-samples icon indicating copy to clipboard operation
react-native-windows-samples copied to clipboard

Define promise-like/callbacks in the docs

Open asklar opened this issue 3 years ago • 1 comments

We should:

  • Define what a callback is. Is it strictly a void (*) ()? a std::function? is it anything with an operator() ?
  • What types they take/return
  • What the difference between 1 or 2 is
  • When you would use a callback, two callbacks or a promise

Originally posted by @asklar in https://github.com/microsoft/react-native-windows-samples/pull/280#discussion_r498583420

asklar avatar Oct 02 '20 01:10 asklar

The default path is more complicated than it may need to be (powerful, but confusing). We may have plans to streamline this, but in the meantime we need to document what we have.

chrisglein avatar Oct 12 '20 18:10 chrisglein