<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>angelbeatsviolin</author_name>
  <author_url>https://blog.hatena.ne.jp/angelbeatsviolin/</author_url>
  <blog_title>sontixyou blog</blog_title>
  <blog_url>https://angelbeatsviolin.hatenablog.com/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>tokio crateを使って、非同期処理を書きたい場合、ほぼほぼasync await構文を書くと思う。 私は、awaitとawait?の違い、使い分けがいまいちわからないでの、頭の整理がてら書いていく。 await awaitは、非同期関数の結果を待つ。async関数やブロックから呼び出され、 非同期で処理が完了するまで実行を停止します。これにより、他のタスクが並行して実行されることが可能になります。 また、エラーが発生時は、自分でエラーをハンドリングする必要がある。 だが、await?より細かいエラーをハンドリングできそうな印象あるが、コード量は少し増える。 #[tokio::main]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fangelbeatsviolin.hatenablog.com%2Fentry%2F2024%2F07%2F08%2F224211&quot; title=&quot;awaitとawait?について - sontixyou blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-07-08 22:42:11</published>
  <title>awaitとawait?について</title>
  <type>rich</type>
  <url>https://angelbeatsviolin.hatenablog.com/entry/2024/07/08/224211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
