Questions tagged [publisher]

325 questions
0
votes
2 answers

forward message to audit queue for a publisher/subscriber

I have setup a publisher/subscriber and wanted to send the received message to audit queue. Here my app.config extract …
Denfer06
  • 25
  • 5
0
votes
1 answer

Is there a way to cache responses using Mono from a WebClient call?

Is there a way to cache the response from a call if the inputs are the same? For example, if the fileName is the same, I don't want to make the request out with my webClient again since it takes a while for the…
0
votes
0 answers

Why the UIView extension doesn't work using combine?

My Problem : When I use UIView extension about Combine, It doesn't work. But use TabGesture extension, it works. I don`t know why.. UIGestureRecognizer file When I do this, the publisher doesn't work. But, If I do this(change tabPublisher ->…
안은노
  • 59
  • 3
0
votes
1 answer

Is it possible to use the raspberry pi on which the MQTT broker is running, also to publish on the MQTT broker? So as a broker and publisher

I am currently running a raspberry pi with a MQTT broker. But my problem is that I also want to use the raspberry pi to publish on the broker, for some microcontrollers to receive the message. I do not know how to utilise this. There's however a few…
Jumike
  • 3
  • 2
0
votes
0 answers

Publisher vba select shape and set size and location

It seems simple enough... I have 100 pages with 2 graphics on each one. All I want to do is click on one graphic and change its size and location, then the second graphic, the same but different location. Then move to next page and repeat. I cannot…
0
votes
1 answer

Weak referenced Passthrough Subject doesn't send input

I'm trying some patterns and at some point I realised my passthrough subject doesn't send anything when self is weak. Here what i did : import Foundation import Combine class ViewModel { var publisher = PassthroughSubject<[WebData],…
incelemeTRe
  • 43
  • 1
  • 4
0
votes
1 answer

Retry with delay in Swift Combine?

Tried these "solutions": Combine framework retry after delay? https://www.donnywals.com/retrying-a-network-request-with-a-delay-in-combine/ But all of them doesn't work: let retryCount = 3 let delay = 5 func requestOneTime() -> Future<(), Error> {…
Gargo
  • 1,135
  • 1
  • 10
  • 21
0
votes
2 answers

"Empty Subscriber" in Swift Combine?

There are some cases when code should be executed but its result should be not handled. If I use completion blocks the code looks like the following: func someFunc(completion: (() -> ())?) { ... } someFunc(nil) Now if I use Combine I should write…
Gargo
  • 1,135
  • 1
  • 10
  • 21
0
votes
0 answers

CurrentValueSubject: ignore the first value on subscribe and trigger update only if there is already a value

Code: private var _nwPathStatusSubject: CurrentValueSubject = .init(.satisfied) private var networkPathStatusPublisher: AnyPublisher { _nwPathStatusSubject .removeDuplicates() …
Richard Topchii
  • 7,075
  • 8
  • 48
  • 115
0
votes
1 answer

Make a sequence of 2 requests with Combine in Swift?

I have the following code: import Combine func login() -> Future { ... } func updateImage() -> Future { ... } login() .flatMap { response -> Future in // handle response and save token…
Gargo
  • 1,135
  • 1
  • 10
  • 21
0
votes
0 answers

How to change the global dimension in assembly of solidworks

I have been modelling the parametic window in Solidworks with custom UI. But in assembly, global dimension of part isnot changed properly according to input parameters of custom UI. Other input parameters except for globa dimension work very well. I…
Y J Ben
  • 1
  • 1
0
votes
1 answer

Is first-in-first-out guaranteed and safe in this Combine asyncMap implementation?

In our codebase, we were using quite often async Methods encapsulated in a Task inside a Combine pipeline. After reading an article from swiftbysundell we implemented a Publisher extension with the asyncMap method in the article. However, the way it…
Marco Boerner
  • 1,243
  • 1
  • 11
  • 34
0
votes
0 answers

Why didn't I get the message "mqtt problem" micropython

I am writing code on esp32 to be a MQTT publisher and when I run the program on esp32 I get a message on terminal "success send a data" but when I see on my subscriber program on python I didn't get any message. I think the problem was from token…
0
votes
0 answers

dPad Game Controller in tvOS using Publisher to get x-Axis and y-Axis values

I'm trying to read the X- and Y-Axis values of the Siri-Remote-Control on my appleTV Device. It works fine if I use a "valueChangeHandler" on the dPad. I was looking to use an reactive approach using Combine like this: self.pubs =…
Frank Marx
  • 151
  • 11
0
votes
1 answer

ROS Publisher is not publishing continuously

My Publisher is not publishing continuously, can you please tell me how can I subscribe/publish and advertise services in the same time? thanks in advance. #! /usr/bin/env python3 # -*- coding: utf-8 -*- import json import rospy from std_msgs.msg…
Bilal
  • 3,191
  • 4
  • 21
  • 49