Welcome to the interactive tutorial on how to use side-effect "operators" in MobX! Over the course of the next three samples, you'll learn (and be able to explore) exactly how autorun
, when
and reaction
work, and when/why you would use them when building reactive applications.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import imaplib2, time | |
from threading import * | |
# This is the threading object that does all the waiting on | |
# the event | |
class Idler(object): | |
def __init__(self, conn): | |
self.thread = Thread(target=self.idle) | |
self.M = conn | |
self.event = Event() |
A Pen by Adam Quinton on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<user>S-1-5-21-1953236517-242735908-2433092285-500</user> | |
<keys> | |
<key installerType="Unknown" displayName="Mozilla Firefox 84.0 (x64 en-US)" displayVersion="84.0"> | |
<RegistryView>Registry64</RegistryView> | |
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Mozilla Firefox 84.0 (x64 en-US)</KeyPath> | |
<DefaultValue /> | |
<InstallLocation><![CDATA[C:\Program Files\Mozilla Firefox]]></InstallLocation> | |
<UninstallString><![CDATA["C:\Program Files\Mozilla Firefox\uninstall\helper.exe"]]></UninstallString> |