<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Francis Provost</title>
    <description>The latest articles on DEV Community by Francis Provost (@francisprovost).</description>
    <link>https://dev.to/francisprovost</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F30088%2Fe17a7036-400e-4e7f-a35f-ce7b3ae1da07.jpeg</url>
      <title>DEV Community: Francis Provost</title>
      <link>https://dev.to/francisprovost</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/francisprovost"/>
    <language>en</language>
    <item>
      <title>Await a setTimeout</title>
      <dc:creator>Francis Provost</dc:creator>
      <pubDate>Tue, 21 Apr 2020 20:07:07 +0000</pubDate>
      <link>https://dev.to/francisprovost/await-a-settimeout-1fje</link>
      <guid>https://dev.to/francisprovost/await-a-settimeout-1fje</guid>
      <description>&lt;p&gt;Even thought &lt;code&gt;setTimeout&lt;/code&gt; isn't always the best solution we always end up using it for some reason. Since I quite like the &lt;code&gt;async/await&lt;/code&gt; syntax I create a small snippets to &lt;code&gt;await&lt;/code&gt; a &lt;code&gt;setTimeout&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// === Snippet ===&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;wait&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;timeToDelay&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;setTimeout&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;timeToDelay&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;

&lt;span class="c1"&gt;// === Usage ===&lt;/span&gt;
&lt;span class="c1"&gt;// Some code before&lt;/span&gt;
&lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;wait&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="c1"&gt;// wait 1s&lt;/span&gt;
&lt;span class="c1"&gt;// Code runs after 1s&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>snippets</category>
      <category>programming</category>
      <category>devtips</category>
    </item>
    <item>
      <title>How do you screen share with a 4k display</title>
      <dc:creator>Francis Provost</dc:creator>
      <pubDate>Fri, 06 Mar 2020 03:25:30 +0000</pubDate>
      <link>https://dev.to/francisprovost/how-do-you-screen-share-with-a-4k-display-36b9</link>
      <guid>https://dev.to/francisprovost/how-do-you-screen-share-with-a-4k-display-36b9</guid>
      <description>&lt;p&gt;Does anyone have some tips about screen sharing with a 4k display? (I.e.: in slack) &lt;/p&gt;

&lt;p&gt;I'm currently moving stuff to my MBP screen otherwise it's way to small for anyone who doesn't have a 4k screen and with my desk configuration it's a little awkward. I would much rather share a part of my main screen or something like that.&lt;/p&gt;

</description>
      <category>mac</category>
      <category>remote</category>
      <category>tips</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
