// Deprecated aliases kept for source compatibility with 0.13.x.
// MoonBit's canonical constructor is `Type::Type(..)`, called as `Type(..)`;
// these `::new` forms will be removed in a future release.
///|
/// Deprecated alias for the `Promise(..)` constructor.
#deprecated("use `Promise(..)` instead")
pub fn[A] Promise::new(
f : async ((A) -> Unit, (Error) -> Unit) -> Unit,
) -> Promise[A] {
Promise(f)
}