An exploration of using promises to implement the actor model