# Procedure.async - Async procedures for Clojure

**URL:** https://clojureverse.org/t/procedure-async-async-procedures-for-clojure/9398
**Category:** Your Projects and Libraries
**Created:** [October 1, 2022, 9:16am UTC](https://clojureverse.org/t/procedure-async-async-procedures-for-clojure/9398 "2022-10-01T09:16:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ertucetin](https://clojureverse.org/user_avatar/clojureverse.org/ertucetin/32/3756_2.png) [@ertucetin](https://clojureverse.org/u/ertucetin)
#### Post date: [October 1, 2022, 9:16am UTC](https://clojureverse.org/t/procedure-async-async-procedures-for-clojure/9398/1 "2022-10-01T09:16:08Z")

</div>

Hi all, I’ve developed a library called **procedure.async** , which provides async procedures for Clojure

**Why?**

- It’d be interesting to have re-frame’s **reg-sub** like flow on the backend (we have **reg-pro** - register procedure) - which forces us to develop handlers in a certain way
- **reg-pros** have dependencies (similar to **reg-sub** ’s `:<- [:some-procedure-id]`) and they realize asynchronously, so that gives some computational power
- It allows a more natural way to keep frontend and backend code in the same file (.CLJC)
- Frontend communicates via procedure’s id directly (e.g. `(dispatch-pro [:procedure-id payload-map])` - like dispatching re-frame event)
- We can implement re-usable/high-level UI components in the same file with reg-pros, allowing us to have a close view of what is happening in a single unit
- This design makes it easier to apply changes for both sides
- Feels like **Storybook** for both frontend and backend!

> **[GitHub - ertugrulcetin/procedure.async: Async procedures for Clojure](https://github.com/ertugrulcetin/procedure.async)**
>
> Async procedures for Clojure. Contribute to ertugrulcetin/procedure.async development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![system](https://clojureverse.org/uploads/default/original/2X/5/51079bf9e4b7d9466242c06cf1e43b9f8bd6da14.png) [@system](https://clojureverse.org/u/system)
#### Post date: [April 1, 2023, 9:17pm UTC](https://clojureverse.org/t/procedure-async-async-procedures-for-clojure/9398/2 "2023-04-01T21:17:05Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
