Skip to content

Running make-thread and async-start Near Each Other Seems to Cause Error #157

Description

@4tuw2tuv0

I was just playing around with a simple example and pretty consistently get this error with this particular setup.

I just tried:

(defun example ()
  ""

  (let ((thread (make-thread #'(lambda ()
                                 (message "First call!")))))
    (async-start (lambda ()
                   2)
                 (lambda (_result)
                   (message "Second call!!")))

    5))

Running this function causes the error error in process sentinel: Invalid read syntax: "#". I tried a few different variations (mostly just to try things, see if any different result occurred): using something like a number instead of message, in both places; removing the #' on the lambda; etc. Same result, pretty much all times.

Removing the the thread invocation or process start did restore no error, though; e.g.

(defun example ()
  ""

  (let ((thread t))
    (async-start (lambda ()
                   2)
                 (lambda (_result)
                   (message "Second call!!")))

    5))

and

(defun example ()
  ""

  (let ((thread (make-thread #'(lambda ()
                                 (message "First call!")))))
    5))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions