Promise-like data encapsulation aimed at asynchronous behavior