Skip to content

Commit a747893

Browse files
authored
Add images to Normal Function and Coroutine table
Updated the table to include images for Normal Function and Coroutine.
1 parent 4cdcd14 commit a747893

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blog/2022-10-29-email-verifications.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ class VerifyEmailWorkflow extends Workflow
8888

8989
Take notice of the `yield` keywords. Because PHP (and most other languages) cannot save their execution state, coroutines rather than normal functions are used inside of workflows (but not activities). A coroutine will be called multiple times in order to execute to completion.
9090

91-
![graph](https://miro.medium.com/max/1400/1*6eE2Gll61IbAAU85Md75OQ.webp)
91+
| Normal Function | Coroutine |
92+
|-----------------|-----------|
93+
| [![](https://mermaid.ink/img/pako:eNplkTtvwyAQgP-KdbNjYYIDZuiSKFO7darpQGxiW7UhuoD6sPLfi52m6uMm7uO-O9BNULvGgITj4F7rTqNPHnfKJjHO4dCiPnXJPa32wda-d_b5ejXHPtcVGh_wBo1tlP2r5tVWD4PBH-I2inWEv9Chivr_RrE2Wa3u5mFXsP8C0VAWUmixb0B6DCaF0eCo5xSmuViB78xoFMh4bDS-KFD2Ep2Ttk_OjTcNXWg7kEc9nGMWTo32Ztfr-IHxm2J8k8GtC9aD5BuxNAE5wRtISvJMEE5yQSgpqWApvINcM5KJghfFuiSCUbG-pPCxTCUZ41RwXrKS8Q1llPAUTNN7hw_XXSwruXwC4h15Pw?type=png)](https://mermaid.live/edit#pako:eNplkTtvwyAQgP-KdbNjYYIDZuiSKFO7darpQGxiW7UhuoD6sPLfi52m6uMm7uO-O9BNULvGgITj4F7rTqNPHnfKJjHO4dCiPnXJPa32wda-d_b5ejXHPtcVGh_wBo1tlP2r5tVWD4PBH-I2inWEv9Chivr_RrE2Wa3u5mFXsP8C0VAWUmixb0B6DCaF0eCo5xSmuViB78xoFMh4bDS-KFD2Ep2Ttk_OjTcNXWg7kEc9nGMWTo32Ztfr-IHxm2J8k8GtC9aD5BuxNAE5wRtISvJMEE5yQSgpqWApvINcM5KJghfFuiSCUbG-pPCxTCUZ41RwXrKS8Q1llPAUTNN7hw_XXSwruXwC4h15Pw) | [![](https://mermaid.ink/img/pako:eNptkj1vwyAQhv-KdbMTYUwKZujibFGXqlPtDsQQ26oNFgb1I8p_L7GdKKlyE_c-3HscuiNURirgcOjMV9UI66K3bamjEKPf11YMTfSKi9xY412r1cfMzrFLitGPg9LyVsSPxLSwynmrFy3QUv9vkhS56Dplb-pyLIoqiHfSPniNvld3YvVIlIU01xff9Ay20Wr1HAaY810ypcH6wvczxwvHC68uvJp5uvB04aEDxFDbVgJ31qsYemV7cU7heL5bgmtUr0rg4SiF_Syh1KdQMwj9bkx_KQufXTfAD6IbQ-YHKZzatiL8VH9VbZhI2dx47YDTBE8mwI_wDRyjZM0QRQlDGGWYkRh-gKcErdmGbjZphhjBLD3F8Dt1RWtCMaM0IxmhT5hgRGNQsnXGvszrMW3J6Q9Ifp7J?type=png)](https://mermaid.live/edit#pako:eNptkj1vwyAQhv-KdbMTYUwKZujibFGXqlPtDsQQ26oNFgb1I8p_L7GdKKlyE_c-3HscuiNURirgcOjMV9UI66K3bamjEKPf11YMTfSKi9xY412r1cfMzrFLitGPg9LyVsSPxLSwynmrFy3QUv9vkhS56Dplb-pyLIoqiHfSPniNvld3YvVIlIU01xff9Ay20Wr1HAaY810ypcH6wvczxwvHC68uvJp5uvB04aEDxFDbVgJ31qsYemV7cU7heL5bgmtUr0rg4SiF_Syh1KdQMwj9bkx_KQufXTfAD6IbQ-YHKZzatiL8VH9VbZhI2dx47YDTBE8mwI_wDRyjZM0QRQlDGGWYkRh-gKcErdmGbjZphhjBLD3F8Dt1RWtCMaM0IxmhT5hgRGNQsnXGvszrMW3J6Q9Ifp7J) |
9294

9395
Even though this workflow will execute to completion effectively once, it will still be partially executed four different times. The results of activities are cached so that only failed activities will be called again. Successful activities get skipped.
9496

0 commit comments

Comments
 (0)