Promise based networking