Library for modelling remote communications asynchronously