From 36b789e2b615953d4cf68254726c1a2977fd422f Mon Sep 17 00:00:00 2001 From: "eryn L. K" Date: Tue, 2 Jun 2020 01:00:03 -0400 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a9dabe..f217706 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This Promise implementation attempts to satisfy these traits: * Predictable timing ## Example -`Promise.async` returns synchronously. +`Promise.new` returns synchronously. ```lua local HttpService = game:GetService("HttpService") @@ -29,7 +29,7 @@ local HttpService = game:GetService("HttpService") -- A light wrapper around HttpService -- Ideally, you do this once per project per async method that you use. local function httpGet(url) - return Promise.async(function(resolve, reject) + return Promise.new(function(resolve, reject) local ok, result = pcall(HttpService.GetAsync, HttpService, url) if ok then