Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1015647 // onUserUtterance_addHandler

JavaX fragment (include)

scope onUserUtterance_addHandler.

static TailFile #tailFile;
static L<VF1<S>> #handlers = synchroList();

// f : voidfunc(S) - gets only the utterance
static void onUserUtterance_addHandler(VF1<S> handler) {
  lock #lock;
  handlers.add(handler);
  if (tailFile == null) tailFile = onUserUtterance(vf1_distribute(handlers));
}

end scope

Author comment

Began life as a copy of #1015151

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015647
Snippet name: onUserUtterance_addHandler
Eternal ID of this version: #1015647/9
Text MD5: f3f35935f00b8829397b9f674e409559
Author: stefan
Category: javax / speech
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-20 15:43:00
Source code size: 350 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 319 / 359
Version history: 8 change(s)
Referenced in: [show references]