Add def-go-fn for async functions

Defines a function that should be called from within a go block.