Basic Future implementation in Swift