Questions tagged [continuation]

53 questions
1
vote
1 answer

How to gracefully break up a long string

Look, I have seen many of the answers provided on this site that deal with aspects of my question. The [aforementioned] answers usually provide already existing examples that are too basic to be helpful--at least for me. But hey, maybe I'm…
philthy
  • 33
  • 7
1
vote
1 answer

Scheme continuation unexpeded behavior

Here is my code. As I call continuation twice, I expect "world" be displayed twice. But it output only once. What am I missing? (define call-with-current-continuation call/cc) (define (repeat arg) (lambda (cc) (cc arg) (cc arg))) (display…
KAction
  • 1,977
  • 15
  • 31
1
vote
0 answers

How to use akka dataflow in maven

I encountered a problem when using data flow . The maven can not compile if I enable the continuation in maven scala plugin config. After I enable the continuation in maven, the compile starts to fail. And the error message is very confusing. Like…
user1453345
  • 338
  • 2
  • 10
1
vote
1 answer

Jetty - Detect disconnected client (Continuations)

I'm using Jetty with Continuations to implement long polling, but I don't see a way to detect a client disconnecting. I understand that in the time between the first run (creation of the Continuation) and any subsequent run there may be no traffic…
Marcus
  • 778
  • 9
  • 20
0
votes
1 answer

Action Chaining Not Redirecting After Controller.await(int millis)

I'm not sure if this isn't working as intended of it it's just me getting confused. What I would like to do is to asynchronously delay an action, and await(int millis) and I seem to be able to become friends. Here's what happens: 1.…
Tobias
  • 1
0
votes
1 answer

Second WorkRequest of WorkContinuation do not work

I am trying to start two work request, one worker sends a request to the server for generating excel file and obtains URL for download. Another work starts after previous and must to download that file. First work starts and returns…
0
votes
1 answer

Perl include continuation lines and ignore double quotes

I was working on a script that needs to produce foo for the first two lines and bar for the last three. There are two issues i am running into here. How do I get Perl to ignore the double quotes around the first foo? How do I get it recognize the…
synarchy007
  • 19
  • 1
  • 4
0
votes
1 answer

Cobol Continuation Line for File Path

I am learning Cobol and I am struggling with declaring my file path. In the Environment Division I have the following code SELECT Sales-File ASSIGN to "C:\Users\Bogdan\Desktop\Program Cobol\Modul 14\AROMASALES.RPT" MY File Path is too big for…
BogdanP
  • 13
  • 1
  • 6
0
votes
4 answers

Code formatting with bash script

I would like to search through a file and find all instances where the last non-blank character is a comma and move the line below that up one. Essentially, undoing line continuations like private static final double SOME_NUMBERS[][] = { {1.0,…
mjswartz
  • 715
  • 1
  • 6
  • 19
0
votes
1 answer

IllegalArgumentException - 'No servlet context to dispatch to' error in undertow for async servlet

I am getting the below error when undertow tries to dispatch the httpresponse. java.lang.IllegalArgumentException: UT010046: No servlet context at to dispatch to at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:173)…
0
votes
2 answers

Image freeze when a continuation is called

I'm trying to test the continuation facility in Pharo, with this code(in the playground): | cont f | f:=[ |i| i:=0. Continuation currentDo: [ :cc | cont:=cc ]. i:=i+1. ]. f value. "1" cont. "a Continuation" However, as soon as I…
Charles Langlois
  • 4,198
  • 4
  • 16
  • 25
0
votes
0 answers

Ruby Continuation-heavy application SLOW

I'm trying to run a Continuation-heavy project in Ruby, and it's terribly slow... I even tried to insert GC.start lines at key points in the code to speed things up, assuming memory was clogged up, and that's didn't help. I tried running Maglev but…
moshewe
  • 127
  • 1
  • 9
0
votes
1 answer

How to check recursive call results in CPS codes

So I'm working on a function to find some valid arithmetic operations to a target number from an int list. It's not allowed to use throw/callac. Only add and mul are valid arithmetic operations here and they are left associative. datatype operation…
EBADF
  • 641
  • 5
  • 10
0
votes
1 answer

Line-continuation usage in gnu sed scripts, under Win XP cmd interpreter

(GNU sed version 4.0.7 - compiled for Win32 - from http://unxutils.sourceforge.net) To prepend one single line on top of a large txt file, the following single line batch script works fine: gsed -i "1i longheader1 longheader2 longheader3…
user19370
  • 116
  • 1
  • 3
0
votes
0 answers

pseudo-arc length continuation petsc4py

I have been a user of pseudo arc-length continuation, nonlinear solvers... in Trilinos LOCA (c++) for years but I recently come across the python package petsc4py. This simplified a lot my programming for a minor decrease in speed. The only missing…