Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support async await #50

Merged
merged 4 commits into from
Jan 15, 2022
Merged

Conversation

p-x9
Copy link
Contributor

@p-x9 p-x9 commented Nov 11, 2021

Support async/await

Sample

print("start")
        
let url = URL(string: "https://github.com/p-x9/OpenGraph")!
Task {
    let og = try! await OpenGraph.fetch(url: url)
    dump(og)
 }
print("end")

Result

start
end

▿ OpenGraph.OpenGraph
  ▿ source: 8 key/value pairs
...

@satoshi-takano
Copy link
Owner

satoshi-takano commented Nov 25, 2021

@p-x9
Thanks for your Pull Request. I'll review it after official release of Xcode 13.2.

@satoshi-takano satoshi-takano merged commit bfeb5d9 into satoshi-takano:main Jan 15, 2022
@satoshi-takano
Copy link
Owner

@p-x9
Thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants