Comments (4)
This might be related to Clojure's 1.8's direct linking. Have you tried with ^:redef
or ^:dynamic
?
from pulsar.
@circlespainter Thank you for the quick response!
I tried reloading
(defsfn ^:redef a1 []
(receive
:ab (println "two")))
and
(defsfn ^:dynamic a1 []
(receive
:ab (println "two")))
in clojure 1.8.0 and 1.7.0, but got the same behaviour as above.
While testing I noticed I can reload this in clojure 1.8.0 and 1.7.0!:
(def b1 (sfn []
(receive
:ab (println "three"))))
This should solve my immediate problem using Pulsar with the Component lib/reloaded workflow. Will test this now..
from pulsar.
Just to confirm, as expected (def a (sfn [] ...)
works fine with component/reloaded workflow, while (defsfn a [] ..)
doesn't.
from pulsar.
This doesn't happen with non-matching receives ((receive)
).
from pulsar.
Related Issues (20)
- watch! fails when called from within a receive with an :else clause
- (spawn-fiber #(rcv channel)) failing in the REPL
- `Deref clojure.core/promise` in fiber outputs stream of warnings HOT 3
- supervisor does not appear to handle gen-server crashing HOT 9
- Automatic instrumentation HOT 6
- Pulsar fibers vs. core.async `go` blocks HOT 2
- Watching actors from a gen-server HOT 2
- shutdown! doesn't take cause/reason as an argument.
- Passing a symbol bound in let to gen-server throws an exception.
- call-timed! doesn't return nil HOT 1
- fvvvrv v vfvf
- auto instrumentation throwing ClassFormatError HOT 1
- clustered ping/pong in example not working
- Blocking and bound mailboxes - not working as expected HOT 2
- register! creates an mbean, need to remove with quasar HOT 1
- Mechanism for detecting when sending to a closed channel
- Status of pulsar HOT 3
- Clojure 1.10
- Support virtualThreads?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulsar.