future.isResolved is a function